ModelOperationsCatalog ModelOperationsCatalog ModelOperationsCatalog Class

Definition

Class used by MLContext to save and load trained models.

public sealed class ModelOperationsCatalog
type ModelOperationsCatalog = class
Public NotInheritable Class ModelOperationsCatalog
Inheritance
ModelOperationsCatalogModelOperationsCatalogModelOperationsCatalog

Methods

CreatePredictionEngine<TSrc,TDst>(ITransformer, DataViewSchema) CreatePredictionEngine<TSrc,TDst>(ITransformer, DataViewSchema) CreatePredictionEngine<TSrc,TDst>(ITransformer, DataViewSchema)

Create a prediction engine for one-time prediction. It's mainly used in conjunction with Load(Stream, DataViewSchema), where input schema is extracted during loading the model.

CreatePredictionEngine<TSrc,TDst>(ITransformer, Boolean, SchemaDefinition, SchemaDefinition) CreatePredictionEngine<TSrc,TDst>(ITransformer, Boolean, SchemaDefinition, SchemaDefinition) CreatePredictionEngine<TSrc,TDst>(ITransformer, Boolean, SchemaDefinition, SchemaDefinition)

Create a prediction engine for one-time prediction (default usage).

Load(Stream, DataViewSchema) Load(Stream, DataViewSchema) Load(Stream, DataViewSchema)

Load the model and its input schema from a stream.

Load(String, DataViewSchema) Load(String, DataViewSchema) Load(String, DataViewSchema)

Load the model and its input schema from a file.

LoadWithDataLoader(Stream, IDataLoader<IMultiStreamSource>) LoadWithDataLoader(Stream, IDataLoader<IMultiStreamSource>) LoadWithDataLoader(Stream, IDataLoader<IMultiStreamSource>)

Load a transformer model and a data loader model from a stream.

LoadWithDataLoader(String, IDataLoader<IMultiStreamSource>) LoadWithDataLoader(String, IDataLoader<IMultiStreamSource>) LoadWithDataLoader(String, IDataLoader<IMultiStreamSource>)

Load a transformer model and a data loader model from a file.

Save(ITransformer, DataViewSchema, Stream) Save(ITransformer, DataViewSchema, Stream) Save(ITransformer, DataViewSchema, Stream)

Save a transformer model and the schema of the data that was used to train it to the stream.

Save(ITransformer, DataViewSchema, String) Save(ITransformer, DataViewSchema, String) Save(ITransformer, DataViewSchema, String)

Save a transformer model and the schema of the data that was used to train it to the file.

Save<TSource>(ITransformer, IDataLoader<TSource>, Stream) Save<TSource>(ITransformer, IDataLoader<TSource>, Stream) Save<TSource>(ITransformer, IDataLoader<TSource>, Stream)

Save a transformer model and the loader used to create its input data to the stream.

Save<TSource>(ITransformer, IDataLoader<TSource>, String) Save<TSource>(ITransformer, IDataLoader<TSource>, String) Save<TSource>(ITransformer, IDataLoader<TSource>, String)

Save a transformer model and the loader used to create its input data to the file.

Applies to