Reads a file in libSVM/SVMLight format and converts the data into a data set of LabeledVector.
Reads a file in libSVM/SVMLight format and converts the data into a data set of LabeledVector. The dimension of the LabeledVector is determined automatically.
Since the libSVM/SVMLight format stores a vector in its sparse form, the LabeledVector will also be instantiated with a SparseVector.
executionEnvironment ExecutionEnvironment
Path to the input file
DataSet of LabeledVector containing the information of the libSVM/SVMLight file
Writes a DataSet of LabeledVector to a file using the libSVM/SVMLight format.
Writes a DataSet of LabeledVector to a file using the libSVM/SVMLight format.
Path to output file
DataSet of LabeledVector to write to disk
Convenience functions for machine learning tasks
This object contains convenience functions for machine learning tasks:
- readLibSVM: Reads a libSVM/SVMLight input file and returns a data set of LabeledVector. The file format is specified [http://svmlight.joachims.org/ here].
- writeLibSVM: Writes a data set of LabeledVector in libSVM/SVMLight format to disk. THe file format is specified [http://svmlight.joachims.org/ here].