PredictionEngineBase<TSrc,TDst>.Predict Method

Definition

Overloads

Predict(TSrc)

Run prediction pipeline on one example.

Predict(TSrc, TDst)

Run prediction pipeline on one example.

Predict(TSrc)

Source:
PredictionEngine.cs
Source:
PredictionEngine.cs
Source:
PredictionEngine.cs

Run prediction pipeline on one example.

C#
public TDst Predict(TSrc example);

Parameters

example
TSrc

The example to run on.

Returns

TDst

The result of prediction. A new object is created for every call.

Applies to

ML.NET 4.0.0 and other versions
Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0

Predict(TSrc, TDst)

Source:
PredictionEngine.cs
Source:
PredictionEngine.cs
Source:
PredictionEngine.cs

Run prediction pipeline on one example.

C#
public abstract void Predict(TSrc example, ref TDst prediction);

Parameters

example
TSrc

The example to run on.

prediction
TDst

The object to store the prediction in. If it's null, a new one will be created, otherwise the old one is reused.

Applies to

ML.NET 4.0.0 and other versions
Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0