LogisticRegressionModel.PredictCore Method

Definition

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

Overload List

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

PredictCore(Matrix<Double>, Boolean)

Predicts the value of the dependent variable based on the specified values of the features.
C#
protected override CategoricalVector<int> PredictCore(
	Matrix<double> features,
	bool modelFeaturesOnly
)

Parameters

features  Matrix<Double>
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

CategoricalVector<Int32>
A vector containing the class with the highest probability for as predicted by the model for each row in features.

Exceptions

ArgumentNullException

features is null.

DimensionMismatchException

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

PredictCore(Vector<Double>, Boolean)

Predicts the class based on the specified values of the features.
C#
protected override int PredictCore(
	Vector<double> features,
	bool modelFeaturesOnly
)

Parameters

features  Vector<Double>
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

Int32
The class with the highest probability for the specified features as predicted by the model.

Exceptions

ArgumentNullException

features is null.

DimensionMismatchException

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

See Also