PredictionEnginePoolExtensions.Predict Method

Definition

Overloads

Predict<TData,TPrediction>(PredictionEnginePool<TData,TPrediction>, TData)

Run prediction pipeline on one example using a PredictionEngine from the pool.

Predict<TData,TPrediction>(PredictionEnginePool<TData,TPrediction>, String, TData)

Run prediction pipeline on one example using a PredictionEngine from the pool.

Predict<TData,TPrediction>(PredictionEnginePool<TData,TPrediction>, TData)

Run prediction pipeline on one example using a PredictionEngine from the pool.

public static TPrediction Predict<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePool<TData,TPrediction> predictionEnginePool, TData example) where TData : class where TPrediction : class, new();
static member Predict : Microsoft.Extensions.ML.PredictionEnginePool<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * 'Data -> 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function Predict(Of TData As Class, TPrediction As Class) (predictionEnginePool As PredictionEnginePool(Of TData, TPrediction), example As TData) As TPrediction

Type Parameters

TData
TPrediction

Parameters

predictionEnginePool
PredictionEnginePool<TData,TPrediction>

The pool of PredictionEngine instances to get the PredictionEngine.

example
TData

The example to run on.

Returns

TPrediction

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

Applies to

Predict<TData,TPrediction>(PredictionEnginePool<TData,TPrediction>, String, TData)

Run prediction pipeline on one example using a PredictionEngine from the pool.

public static TPrediction Predict<TData,TPrediction> (this Microsoft.Extensions.ML.PredictionEnginePool<TData,TPrediction> predictionEnginePool, string modelName, TData example) where TData : class where TPrediction : class, new();
static member Predict : Microsoft.Extensions.ML.PredictionEnginePool<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> * string * 'Data -> 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))
<Extension()>
Public Function Predict(Of TData As Class, TPrediction As Class) (predictionEnginePool As PredictionEnginePool(Of TData, TPrediction), modelName As String, example As TData) As TPrediction

Type Parameters

TData
TPrediction

Parameters

predictionEnginePool
PredictionEnginePool<TData,TPrediction>

The pool of PredictionEngine instances to get the PredictionEngine.

modelName
String

The name of the model. Used when there are multiple models with the same input/output.

example
TData

The example to run on.

Returns

TPrediction

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

Applies to