ITransformer ITransformer ITransformer Interface


The transformer is a component that transforms data. It also supports 'schema propagation' to answer the question of 'how will the data with this schema look, after you transform it?'.

public interface ITransformer : Microsoft.ML.ICanSaveModel
type ITransformer = interface
    interface ICanSaveModel
Public Interface ITransformer
Implements ICanSaveModel


IsRowToRowMapper IsRowToRowMapper IsRowToRowMapper

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


GetOutputSchema(DataViewSchema) GetOutputSchema(DataViewSchema) GetOutputSchema(DataViewSchema)

Schema propagation for transformers. Returns the output schema of the data, if the input schema is like the one provided.

GetRowToRowMapper(DataViewSchema) GetRowToRowMapper(DataViewSchema) GetRowToRowMapper(DataViewSchema)

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

Save(ModelSaveContext) Save(ModelSaveContext) Save(ModelSaveContext) Inherited from ICanSaveModel
Transform(IDataView) Transform(IDataView) 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.

Extension Methods

Preview(ITransformer, IDataView, Int32) Preview(ITransformer, IDataView, Int32) Preview(ITransformer, IDataView, Int32)

Preview an effect of the transformer on a given data.

Append<TTrans>(ITransformer, TTrans) Append<TTrans>(ITransformer, TTrans) Append<TTrans>(ITransformer, TTrans)

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

Applies to