Classification Model<T>.Predict Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Predict( | Predicts the most likely class based on 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 input. |
Predict(IDataFrame, ModelInputFormat)
Predicts the most likely class based on
the specified features.
public CategoricalVector<int> Predict(
IDataFrame features,
ModelInputFormat format = ModelInputFormat.Automatic
)
Parameters
- features IDataFrame
- A data frame that contains the input 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
CategoricalVector<Int32>The predicted value.
Predict(Matrix<T>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified features.
public CategoricalVector<int> Predict(
Matrix<T> features,
ModelInputFormat format = ModelInputFormat.Automatic
)
Parameters
- features Matrix<T>
- A matrix 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
CategoricalVector<Int32>The predicted value.
Predict(Vector<T>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified input.
public int 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
Int32The predicted value.