SvmLightLoaderSaverCatalog.LoadFromSvmLightFile Method

Definition

Load a IDataView from a text file using SvmLightLoader.

C#
public static Microsoft.ML.IDataView LoadFromSvmLightFile(this Microsoft.ML.DataOperationsCatalog catalog, string path, long? numberOfRows = default, int inputSize = 0, bool zeroBased = false);

Parameters

path
String

The path to the file.

numberOfRows
Nullable<Int64>

The number of rows from the sample to be used for determining the number of features.

inputSize
Int32

The number of features in the Features column. If 0 is specified, the loader will determine it by looking at the file given in path.

zeroBased
Boolean

If the file contains zero-based indices, this parameter should be set to true. If they are one-based it should be set to false.

Returns

Applies to

Product Versions
ML.NET 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 4.0.0, Preview