PredictionEnginePool<TData,TPrediction>.ReturnPredictionEngine 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
ReturnPredictionEngine(PredictionEngine<TData,TPrediction>) |
Returns a rented PredictionEngine to the pool. |
ReturnPredictionEngine(String, PredictionEngine<TData,TPrediction>) |
Returns a rented PredictionEngine to the pool. |
ReturnPredictionEngine(PredictionEngine<TData,TPrediction>)
Returns a rented PredictionEngine to the pool.
public void ReturnPredictionEngine (Microsoft.ML.PredictionEngine<TData,TPrediction> engine);
member this.ReturnPredictionEngine : Microsoft.ML.PredictionEngine<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> -> unit
Public Sub ReturnPredictionEngine (engine As PredictionEngine(Of TData, TPrediction))
Parameters
- engine
- PredictionEngine<TData,TPrediction>
The rented PredictionEngine.
Applies to
ReturnPredictionEngine(String, PredictionEngine<TData,TPrediction>)
Returns a rented PredictionEngine to the pool.
public void ReturnPredictionEngine (string modelName, Microsoft.ML.PredictionEngine<TData,TPrediction> engine);
member this.ReturnPredictionEngine : string * Microsoft.ML.PredictionEngine<'Data, 'Prediction (requires 'Data : null and 'Prediction : null and 'Prediction : (new : unit -> 'Prediction))> -> unit
Public Sub ReturnPredictionEngine (modelName As String, engine 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.
- engine
- PredictionEngine<TData,TPrediction>
The rented PredictionEngine.