Regression Model<T>.Predict Core Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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<T>, Boolean)
Predicts the value of the dependent variable based on
the specified values of the features.
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
Argument | features is null. |
Dimension | 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.
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
TThe value of the dependent variable predicted by the regression.
Exceptions
Argument | features is null. |
Dimension | The length of features does not match the required number of values. |