RegressionModel<T>.Predict Method

Definition

Namespace: Extreme.DataAnalysis.Models
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Predict(IDataFrame, ModelInputFormat) Predicts the value of the output corresponding to the specified features.
Predict(Matrix<T>, ModelInputFormat) Predicts the value of the output corresponding to the specified features.
Predict(Vector<T>, ModelInputFormat) Predicts the value of the output corresponding to the specified features.

RegressionModel<T>.Predict(IDataFrame, ModelInputFormat)

Predicts the value of the output corresponding to the specified features.
C#
public Vector<T> Predict(
	IDataFrame features,
	ModelInputFormat format = ModelInputFormat.Automatic
)

Parameters

features  IDataFrame
A data frame that contains the features for the regression.
format  ModelInputFormat  (Optional)
A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.

Return Value

Vector<T>
The predicted value.

RegressionModel<T>.Predict(Matrix<T>, ModelInputFormat)

Predicts the value of the output corresponding to the specified features.
C#
public Vector<T> Predict(
	Matrix<T> features,
	ModelInputFormat format = ModelInputFormat.Automatic
)

Parameters

features  Matrix<T>
A matrix that contains the features for the regression.
format  ModelInputFormat  (Optional)
A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.

Return Value

Vector<T>
The predicted value.

RegressionModel<T>.Predict(Vector<T>, ModelInputFormat)

Predicts the value of the output corresponding to the specified features.
C#
public T Predict(
	Vector<T> features,
	ModelInputFormat format = ModelInputFormat.Automatic
)

Parameters

features  Vector<T>
A vector that contains the input values for the regression.
format  ModelInputFormat  (Optional)
A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.

Return Value

T
The predicted value.

See Also