Simple Regression Model.Predict Method
Definition
Namespace: Numerics.NET.Statistics
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 dependent variable based on the specified value of the independent variable. |
| 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(Double)
Predicts the value of the dependent variable based on the specified value of the independent
variable.
public double Predict(
double value
)Parameters
- value Double
- The values for the independent variable.
Return Value
DoubleThe value of the dependent variable predicted by the regression.
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. |