PreprocessingInfo<T, TInput, TOutput>

Models & Types · AiDotNet.Preprocessing

Stores the fitted preprocessing pipeline for inference.

For Beginners

After training, your preprocessing pipeline has “learned” things like the mean and standard deviation for scaling. This class stores all that learned information so you can apply the same transformations to new data during predictions.

How It Works

This class encapsulates the preprocessing state needed to transform new data during inference. It stores the fitted feature pipeline and optionally a target pipeline for inverse transformation of predictions.

Constructors

Constructor Summary
PreprocessingInfo() Creates a new instance of PreprocessingInfo.
PreprocessingInfo(PreprocessingPipeline<T, TInput, TInput> pipeline) Creates a new instance with the specified fitted pipeline.
PreprocessingInfo(PreprocessingPipeline<T, TInput, TInput> pipeline, PreprocessingPipeline<T, TOutput, TOutput> targetPipeline) Creates a new instance with both feature and target pipelines.

Properties

Property Summary
PreprocessingPipeline<T, TInput, TInput> Pipeline { get; set; } Gets or sets the fitted feature preprocessing pipeline.
PreprocessingPipeline<T, TOutput, TOutput> TargetPipeline { get; set; } Gets or sets the fitted target preprocessing pipeline.
bool IsFitted { get; } Gets whether the feature pipeline has been fitted to data.
bool IsTargetFitted { get; } Gets whether the target pipeline has been fitted to data.

Methods

Method Summary
TInput TransformFeatures(TInput input) Transforms input features using the fitted pipeline.
TOutput InverseTransformPredictions(TOutput predictions) Inverse transforms predictions using the target pipeline.