SvmLightLoaderSaverCatalog.LoadFromSvmLightFile Method

Definition

Load a IDataView from a text file using SvmLightLoader.

public static Microsoft.ML.IDataView LoadFromSvmLightFile (this Microsoft.ML.DataOperationsCatalog catalog, string path, long? numberOfRows = default, int inputSize = 0, bool zeroBased = false);
static member LoadFromSvmLightFile : Microsoft.ML.DataOperationsCatalog * string * Nullable<int64> * int * bool -> Microsoft.ML.IDataView
<Extension()>
Public Function LoadFromSvmLightFile (catalog As DataOperationsCatalog, path As String, Optional numberOfRows As Nullable(Of Long) = Nothing, Optional inputSize As Integer = 0, Optional zeroBased As Boolean = false) As IDataView

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