Regression Model<T>.Predict Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
Overload List
| Predict( | Predicts the value of the output corresponding to the specified features. |
| Predict( | Predicts the value of the output corresponding to the specified features. |
| Predict( | Predicts the value of the output corresponding to the specified features. |
Predict(IDataFrame, ModelInputFormat)
Predicts the value of the output corresponding to
the specified features.
public Vector<T> Predict(
IDataFrame features,
ModelInputFormat format = ModelInputFormat.Automatic
)Parameters
- features IDataFrame
- A data frame that contains the features for the regression.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
Vector<T>The predicted value.
Remarks
This method is available when the model is fitted or deployed.
It throws an InvalidOperationException if the model is empty.
Exceptions
| Invalid | Thrown if the model is empty. |
Predict(Matrix<T>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified features.
public Vector<T> Predict(
Matrix<T> features,
ModelInputFormat format = ModelInputFormat.Automatic
)Parameters
- features Matrix<T>
- A matrix that contains the features for the regression.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
Vector<T>The predicted value.
Remarks
This method is available when the model is fitted or deployed.
It throws an InvalidOperationException if the model is empty.
Exceptions
| Invalid | Thrown if the model is empty. |
Predict(Vector<T>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified features.
public T Predict(
Vector<T> features,
ModelInputFormat format = ModelInputFormat.Automatic
)Parameters
- features Vector<T>
- A vector that contains the input values for the regression.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
TThe predicted value.
Remarks
This method is available when the model is fitted or deployed.
It throws an InvalidOperationException if the model is empty.
Exceptions
| Invalid | Thrown if the model is empty. |