RegressionModel<T>.PredictCore Method

Definition

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

Overload List

PredictCore(Matrix<T>, Boolean) Predicts the value of the dependent variable based on the specified values of the features.
PredictCore(Vector<T>, Boolean) Predicts the value of the dependent variable based on the specified values of the features.

PredictCore(Matrix<T>, Boolean)

Predicts the value of the dependent variable based on the specified values of the features.
C#
protected virtual Vector<T> PredictCore(
	Matrix<T> features,
	bool modelFeaturesOnly
)

Parameters

features  Matrix<T>
A matrix containing the values for the independent variables.
modelFeaturesOnly  Boolean
Specifies whether features includes only features that appear in the fitted model.

Return Value

Vector<T>
A vector of the values of the dependent variable predicted by the regression for each row in features.

Exceptions

ArgumentNullExceptionfeatures is null.
DimensionMismatchException

The number of columns of features does not match the required number of values.

PredictCore(Vector<T>, Boolean)

Predicts the value of the dependent variable based on the specified values of the features.
C#
protected virtual T PredictCore(
	Vector<T> features,
	bool modelFeaturesOnly
)

Parameters

features  Vector<T>
A vector containing the values for the independent variables.
modelFeaturesOnly  Boolean
Specifies whether features includes only features that appear in the fitted model.

Return Value

T
The value of the dependent variable predicted by the regression.

Exceptions

ArgumentNullExceptionfeatures is null.
DimensionMismatchException

The length of features does not match the required number of values.

See Also