The string that represents the format that this data source provider uses.
The string that represents the format that this data source provider uses. This is overridden by children to provide a nice alias for the data source. For example:
override def shortName(): String = "parquet"
1.5.0
libsvmpackage implements Spark SQL data source API for loading LIBSVM data as DataFrame. The loaded DataFrame has two columns:labelcontaining labels stored as doubles andfeaturescontaining feature vectors stored as Vectors.To use LIBSVM data source, you need to set "libsvm" as the format in DataFrameReader and optionally specify options, for example:
LIBSVM data source supports the following options:
LIBSVM datasets