DataOperationsCatalog Class

Definition

Class used to create components that operate on data, but are not part of the model training pipeline. Includes components to load, save, cache, filter, shuffle, and split data.

public sealed class DataOperationsCatalog
type DataOperationsCatalog = class
Public NotInheritable Class DataOperationsCatalog
Inheritance
DataOperationsCatalog

Methods

BootstrapSample(IDataView, Nullable<Int32>, Boolean)

Take an approximate bootstrap sample of input.

Cache(IDataView, String[])

Creates a lazy in-memory cache of input.

CreateEnumerable<TRow>(IDataView, Boolean, Boolean, SchemaDefinition)

Convert an IDataView into a strongly-typed IEnumerable<T>.

CrossValidationSplit(IDataView, Int32, String, Nullable<Int32>)

Split the dataset into cross-validation folds of train set and test set. Respects the samplingKeyColumnName if provided.

FilterRowsByColumn(IDataView, String, Double, Double)

Filter the dataset by the values of a numeric column.

FilterRowsByKeyColumnFraction(IDataView, String, Double, Double)

Filter the dataset by the values of a KeyDataViewType column.

FilterRowsByMissingValues(IDataView, String[])

Drop rows where any column in columns contains a missing value.

LoadFromEnumerable<TRow>(IEnumerable<TRow>, DataViewSchema)

Create a new IDataView over an enumerable of the items of user-defined type using the provided DataViewSchema, which might contain more information about the schema than the type can capture.

LoadFromEnumerable<TRow>(IEnumerable<TRow>, SchemaDefinition)

Create a new IDataView over an enumerable of the items of user-defined type. The user maintains ownership of the data and the resulting data view will never alter the contents of the data. Since IDataView is assumed to be immutable, the user is expected to support multiple enumerations of the data that would return the same results, unless the user knows that the data will only be cursored once.

One typical usage for streaming data view could be: create the data view that lazily loads data as needed, then apply pre-trained transformations to it and cursor through it for transformation results.

ShuffleRows(IDataView, Nullable<Int32>, Int32, Boolean)

Shuffle the rows of input.

SkipRows(IDataView, Int64)

Skip count rows in input.

TakeRows(IDataView, Int64)

Take count rows from input.

TrainTestSplit(IDataView, Double, String, Nullable<Int32>)

Split the dataset into the train set and test set according to the given fraction. Respects the samplingKeyColumnName if provided.

Extension Methods

LoadFromBinary(DataOperationsCatalog, IMultiStreamSource)

Load a IDataView from an IMultiStreamSource on a binary file. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

LoadFromBinary(DataOperationsCatalog, String)

Load a IDataView from a binary file. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

SaveAsBinary(DataOperationsCatalog, IDataView, Stream, Boolean)

Save the IDataView into a binary stream.

CreateTextLoader(DataOperationsCatalog, TextLoader+Column[], Char, Boolean, IMultiStreamSource, Boolean, Boolean, Boolean)

Create a text loader TextLoader.

CreateTextLoader(DataOperationsCatalog, TextLoader+Options, IMultiStreamSource)

Create a text loader TextLoader.

CreateTextLoader<TInput>(DataOperationsCatalog, Char, Boolean, IMultiStreamSource, Boolean, Boolean, Boolean)

Create a text loader TextLoader by inferencing the dataset schema from a data model type.

LoadFromTextFile(DataOperationsCatalog, String, TextLoader+Column[], Char, Boolean, Boolean, Boolean, Boolean)

Load a IDataView from a text file using TextLoader. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

LoadFromTextFile(DataOperationsCatalog, String, TextLoader+Options)

Load a IDataView from a text file using TextLoader. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

LoadFromTextFile<TInput>(DataOperationsCatalog, String, Char, Boolean, Boolean, Boolean, Boolean)

Load a IDataView from a text file using TextLoader. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

SaveAsText(DataOperationsCatalog, IDataView, Stream, Char, Boolean, Boolean, Boolean, Boolean)

Save the IDataView as text.

Applies to