TimeSeriesPredictionEngine<TSrc,TDst> Class
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.
A class that runs the previously trained model (and the preceding transform pipeline) on the in-memory data, one example at a time. This 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.
public sealed class TimeSeriesPredictionEngine<TSrc,TDst> : Microsoft.ML.PredictionEngineBase<TSrc,TDst> where TSrc : class where TDst : class, new()
type TimeSeriesPredictionEngine<'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 TimeSeriesPredictionEngine(Of TSrc, TDst)
Inherits PredictionEngineBase(Of TSrc, TDst)
Type Parameters
- TSrc
The user-defined type that holds the example.
- TDst
The user-defined type that holds the prediction.
- Inheritance
Constructors
TimeSeriesPredictionEngine<TSrc,TDst>(IHostEnvironment, ITransformer, Boolean, SchemaDefinition, SchemaDefinition) |
Contructor for creating time series specific prediction engine. It allows the time series model to be updated with the observations seen at prediction time via CheckPoint(IHostEnvironment, String) |
Properties
OutputSchema |
Provides output schema. (Inherited from PredictionEngineBase<TSrc,TDst>) |
Methods
CheckPoint(IHostEnvironment, Stream) |
Checkpoints TimeSeriesPredictionEngine<TSrc,TDst> to a Stream with the updated state. |
CheckPoint(IHostEnvironment, String) |
Checkpoints TimeSeriesPredictionEngine<TSrc,TDst> to disk with the updated state. |
Dispose() | (Inherited from PredictionEngineBase<TSrc,TDst>) |
Predict(Nullable<Int32>, Nullable<Single>) |
Forecasting only task. |
Predict(TSrc, Nullable<Int32>, Nullable<Single>) |
Performs prediction. In the case of forecasting only task |
Predict(TSrc, TDst, Nullable<Int32>, Nullable<Single>) |
Performs prediction. In the case of forecasting only task |
Predict(TSrc, TDst) |
Performs prediction. In the case of forecasting only task |
Predict(TSrc) |
Run prediction pipeline on one example. (Inherited from PredictionEngineBase<TSrc,TDst>) |