Share via


StatefulCustomMappingTransformer<TSrc,TDst,TState> Class

Definition

public sealed class StatefulCustomMappingTransformer<TSrc,TDst,TState> : Microsoft.ML.ITransformer where TSrc : class, new() where TDst : class, new() where TState : class, new()
type StatefulCustomMappingTransformer<'Src, 'Dst, 'State (requires 'Src : null and 'Src : (new : unit -> 'Src) and 'Dst : null and 'Dst : (new : unit -> 'Dst) and 'State : null and 'State : (new : unit -> 'State))> = class
    interface ITransformer
    interface ICanSaveModel
Public NotInheritable Class StatefulCustomMappingTransformer(Of TSrc, TDst, TState)
Implements ITransformer

Type Parameters

TSrc

The class defining which columns to take from the incoming data.

TDst

The class defining which new columns are added to the data.

TState

The type that describes per-cursor state.

Inheritance
StatefulCustomMappingTransformer<TSrc,TDst,TState>
Implements

Methods

GetOutputSchema(DataViewSchema)

Returns the DataViewSchema which would be produced by the transformer applied to an input data with schema inputSchema.

Transform(IDataView)

Take the data in, make transformations, output the data. Note that IDataView's are lazy, so no actual transformations happen here, just schema validation.

Explicit Interface Implementations

ICanSaveModel.Save(ModelSaveContext)
ITransformer.GetRowToRowMapper(DataViewSchema)

Constructs a row-to-row mapper based on an input schema. If IsRowToRowMapper is false, then an exception is thrown. If the inputSchema is in any way unsuitable for constructing the mapper, an exception is likewise thrown.

ITransformer.IsRowToRowMapper

Whether a call to GetRowToRowMapper(DataViewSchema) should succeed, on an appropriate schema.

Extension Methods

Preview(ITransformer, IDataView, Int32)

Preview an effect of the transformer on a given data.

Append<TTrans>(ITransformer, TTrans)

Create a new transformer chain, by appending another transformer to the end of this transformer chain.

CreateTimeSeriesEngine<TSrc,TDst>(ITransformer, IHostEnvironment, PredictionEngineOptions)

TimeSeriesPredictionEngine<TSrc,TDst> creates a prediction engine for a time series pipeline. It updates the state of time series model with observations seen at prediction phase and allows checkpointing the model.

CreateTimeSeriesEngine<TSrc,TDst>(ITransformer, IHostEnvironment, Boolean, SchemaDefinition, SchemaDefinition)

TimeSeriesPredictionEngine<TSrc,TDst> creates a prediction engine for a time series pipeline. It updates the state of time series model with observations seen at prediction phase and allows checkpointing the model.

Applies to