ModelExtensions.Transform Method

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

Transform(ITransformationModel, IDataFrame, ModelInputFormat) Applies the transformation to a set of observations.
Transform(ITransformationModel, Matrix<Double>, ModelInputFormat) Applies the transformation to a set of observations.

Transform(ITransformationModel, IDataFrame, ModelInputFormat)

Applies the transformation to a set of observations.
C#
public static Matrix<double> Transform(
	this ITransformationModel model,
	IDataFrame features,
	ModelInputFormat format = ModelInputFormat.Automatic
)

Parameters

model  ITransformationModel
The model that specifies the transformation.
features  IDataFrame
A data frame that contains the input values to transform.
format  ModelInputFormat  (Optional)
A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.

Return Value

Matrix<Double>
A matrix that contains the transformed values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITransformationModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Transform(ITransformationModel, Matrix<Double>, ModelInputFormat)

Applies the transformation to a set of observations.
C#
public static Matrix<double> Transform(
	this ITransformationModel model,
	Matrix<double> features,
	ModelInputFormat format = ModelInputFormat.Automatic
)

Parameters

model  ITransformationModel
The model that specifies the transformation.
features  Matrix<Double>
A matrix that contains the input values to transform.
format  ModelInputFormat  (Optional)
A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.

Return Value

Matrix<Double>
A matrix that contains the transformed values.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITransformationModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also