Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PredictionEngineBase<TSrc,TDst>.Predict Method

Definition

Namespace:
Microsoft.ML
Assembly:
Microsoft.ML.Data.dll
Package:
Microsoft.ML v4.0.1
Package:
Microsoft.ML v1.0.0
Package:
Microsoft.ML v1.1.0
Package:
Microsoft.ML v1.2.0
Package:
Microsoft.ML v1.3.1
Package:
Microsoft.ML v1.4.0
Package:
Microsoft.ML v1.5.5
Package:
Microsoft.ML v1.6.0
Package:
Microsoft.ML v1.7.0
Package:
Microsoft.ML v2.0.1
Package:
Microsoft.ML v3.0.1
Package:
Microsoft.ML v5.0.0-preview.1.25125.4

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.

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.

public TDst Predict(TSrc example);
member this.Predict : 'Src -> 'Dst
Public Function Predict (example As TSrc) As TDst

Parameters

example
TSrc

The example to run on.

Returns

TDst

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

Applies to

Predict(TSrc, TDst)

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

Run prediction pipeline on one example.

public abstract void Predict(TSrc example, ref TDst prediction);
abstract member Predict : 'Src * 'Dst -> unit
Public MustOverride Sub Predict (example As TSrc, ByRef prediction As TDst)

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