PredictionEnginePool<TData,TPrediction>.GetPredictionEngine Method
Definition
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
GetPredictionEngine() |
Gets a PredictionEngine that can be used to make predictions using
|
GetPredictionEngine(String) |
Gets a PredictionEngine for a named model. |
GetPredictionEngine()
Gets a PredictionEngine that can be used to make predictions using
TData
and TPrediction
.
public Microsoft.ML.PredictionEngine<TData,TPrediction> GetPredictionEngine ();
member this.GetPredictionEngine : unit -> Microsoft.ML.PredictionEngine<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))>
Public Function GetPredictionEngine () As PredictionEngine(Of TData, TPrediction)
Returns
Applies to
GetPredictionEngine(String)
Gets a PredictionEngine for a named model.
public Microsoft.ML.PredictionEngine<TData,TPrediction> GetPredictionEngine (string modelName);
member this.GetPredictionEngine : string -> Microsoft.ML.PredictionEngine<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))>
Public Function GetPredictionEngine (modelName As String) As PredictionEngine(Of TData, TPrediction)
Parameters
- modelName
- String
The name of the model which allows for uniquely identifying the model when
multiple models have the same TData
and
TPrediction
types.