Freigeben über


PredictionEnginePoolExtensions.Predict Methode

Definition

Überlädt

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

Führen Sie die Prognosepipeline in einem Beispiel mithilfe einer PrognoseEngine aus dem Pool aus.

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

Führen Sie die Prognosepipeline in einem Beispiel mithilfe einer PrognoseEngine aus dem Pool aus.

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

Führen Sie die Prognosepipeline in einem Beispiel mithilfe einer PrognoseEngine aus dem Pool aus.

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

Typparameter

TData
TPrediction

Parameter

predictionEnginePool
PredictionEnginePool<TData,TPrediction>

Der Pool von PredictionEngine-Instanzen, um die PredictionEngine abzurufen.

example
TData

Das Beispiel, auf dem ausgeführt werden soll.

Gibt zurück

TPrediction

Das Ergebnis der Vorhersage. Für jeden Aufruf wird ein neues Objekt erstellt.

Gilt für:

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

Führen Sie die Prognosepipeline in einem Beispiel mithilfe einer PrognoseEngine aus dem Pool aus.

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

Typparameter

TData
TPrediction

Parameter

predictionEnginePool
PredictionEnginePool<TData,TPrediction>

Der Pool von PredictionEngine-Instanzen, um die PredictionEngine abzurufen.

modelName
String

Der Name des Modells. Wird verwendet, wenn mehrere Modelle mit derselben Eingabe/Ausgabe vorhanden sind.

example
TData

Das Beispiel, auf dem ausgeführt werden soll.

Gibt zurück

TPrediction

Das Ergebnis der Vorhersage. Für jeden Aufruf wird ein neues Objekt erstellt.

Gilt für: