PartialLeastSquaresModel.PredictCore Method

Definition

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

Overload List

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

PredictCore(Matrix<Double>)

Predicts the value of the dependent variable based on the specified values of the features.
C#
protected virtual Matrix<double> PredictCore(
	Matrix<double> features
)

Parameters

features  Matrix<Double>
A matrix containing the values for the independent variables.

Return Value

Matrix<Double>
A matrix of the values of the dependent variables predicted by the regression 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>)

Predicts the value of the dependent variable based on the specified values of the features.
C#
public Vector<double> PredictCore(
	Vector<double> features
)

Parameters

features  Vector<Double>
A vector containing the values for the independent variables.

Return Value

Vector<Double>
A vector containing the values of the dependent variables predicted by the regression.

Exceptions

ArgumentNullException

features is null.

DimensionMismatchException

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

See Also