MLContext MLContext MLContext Class

Definition

The common context for all ML.NET operations. Once instantiated by the user, it provides a way to create components for data preparation, feature enginering, training, prediction, model evaluation. It also allows logging, execution control, and the ability set repeatable random numbers.

public sealed class MLContext : Microsoft.ML.Runtime.IHostEnvironment
type MLContext = class
    interface IHostEnvironment
    interface IChannelProvider
    interface IExceptionContext
    interface IProgressChannelProvider
Public NotInheritable Class MLContext
Implements IHostEnvironment
Inheritance
MLContextMLContextMLContext
Implements

Constructors

MLContext(Nullable<Int32>) MLContext(Nullable<Int32>) MLContext(Nullable<Int32>)

Create the ML context.

Properties

AnomalyDetection AnomalyDetection AnomalyDetection

Trainers and tasks specific to anomaly detection problems.

BinaryClassification BinaryClassification BinaryClassification

Trainers and tasks specific to binary classification problems.

Clustering Clustering Clustering

Trainers and tasks specific to clustering problems.

ComponentCatalog ComponentCatalog ComponentCatalog

This is a catalog of components that will be used for model loading.

Data Data Data

Data loading and saving.

Forecasting Forecasting Forecasting

Trainers and tasks specific to forecasting problems.

Model Model Model

Operations with trained models.

MulticlassClassification MulticlassClassification MulticlassClassification

Trainers and tasks specific to multiclass classification problems.

Ranking Ranking Ranking

Trainers and tasks specific to ranking problems.

Regression Regression Regression

Trainers and tasks specific to regression problems.

Transforms Transforms Transforms

Data processing operations.

Events

Log Log Log

The handler for the log messages.

Explicit Interface Implementations

IChannelProvider.Start(String) IChannelProvider.Start(String) IChannelProvider.Start(String)
IChannelProvider.StartPipe<TMessage>(String) IChannelProvider.StartPipe<TMessage>(String) IChannelProvider.StartPipe<TMessage>(String)
IExceptionContext.ContextDescription IExceptionContext.ContextDescription IExceptionContext.ContextDescription
IExceptionContext.Process<TException>(TException) IExceptionContext.Process<TException>(TException) IExceptionContext.Process<TException>(TException)
IHostEnvironment.Register(String, Nullable<Int32>, Nullable<Boolean>) IHostEnvironment.Register(String, Nullable<Int32>, Nullable<Boolean>) IHostEnvironment.Register(String, Nullable<Int32>, Nullable<Boolean>)
IProgressChannelProvider.StartProgressChannel(String) IProgressChannelProvider.StartProgressChannel(String) IProgressChannelProvider.StartProgressChannel(String)

Applies to