You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/08/19 18:23:47 UTC

[jira] [Created] (SPARK-10117) Implement SQL data source API for reading LIBSVM data

Xiangrui Meng created SPARK-10117:
-------------------------------------

             Summary: Implement SQL data source API for reading LIBSVM data
                 Key: SPARK-10117
                 URL: https://issues.apache.org/jira/browse/SPARK-10117
             Project: Spark
          Issue Type: New Feature
          Components: ML
            Reporter: Xiangrui Meng


It is convenient to implement data source API for LIBSVM format to have a better integration with DataFrames and ML pipeline API.

{code}
import org.apache.spark.ml.source.libsvm._

val training = sqlContext.read
  .format("libsvm")
  .option("numFeatures", "10000")
  .load("path")
{code}

This JIRA covers the following:

1. Read LIBSVM data as a DataFrame with two columns: label: Double and features: Vector.
2. Accept `numFeatures` as an option.
3. The implementation should live under `org.apache.spark.ml.source.libsvm`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org