Simple Regression Model.Predict Core Method
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Predict | Predicts the value of the dependent variable based on the specified values of the features. |
Predict | Predicts the value of the dependent variable 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.
protected override Vector<double> 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
Vector<Double>A vector of the values of the dependent variable predicted by the regression for each row in features.
Exceptions
ArgumentNullException | features is null. |
Dimension | The number of columns of features does not match the required number of values. |
PredictCore(Vector<Double>, Boolean)
Predicts the value of the dependent variable based on
the specified values of the features.
protected override double 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
DoubleThe value of the dependent variable predicted by the regression.
Exceptions
ArgumentNullException | features is null. |
Dimension | The length of features does not match the required number of values. |