Language

PredictionEngine Class

Definition

Class for making single predictions on a previously trained model (and preceding transform pipeline).

public sealed class PredictionEngine : Microsoft.ML.PredictionEngineBase where TSrc : class where TDst : class, new()
type PredictionEngine<'Src, 'Dst (requires 'Src : null and 'Dst : null and 'Dst : (new : unit -> 'Dst))> = class
    inherit PredictionEngineBase<'Src, 'Dst (requires 'Src : null and 'Dst : null and 'Dst : (new : unit -> 'Dst))>
Public NotInheritable Class PredictionEngine(Of TSrc, TDst)
Inherits PredictionEngineBase(Of TSrc, TDst)

Type Parameters

TSrc
TDst
Inheritance
PredictionEngine

Remarks

This class can also be used with trained pipelines that do not end with a predictor: in this case, the 'prediction' will be just the outcome of all the transformations.

The PredictionEngine is NOT thread safe. Using it in a threaded environment can cause unexpected issues.

Properties

Name Description
OutputSchema

Provides output schema.

(Inherited from PredictionEngineBase)

Methods

Name Description
Dispose() (Inherited from PredictionEngineBase)
Predict(TSrc, TDst)

Run prediction pipeline on one example.

Predict(TSrc)

Run prediction pipeline on one example.

(Inherited from PredictionEngineBase)

Applies to