SvmLightLoaderSaverCatalog.LoadFromSvmLightFile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- catalog
- DataOperationsCatalog
The DataOperationsCatalog catalog.
- path
- String
The path to the file.
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.