Classification Model<T>.Predict Probabilities Into Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Predict | Predicts the value of the output corresponding to the specified input. |
Predict | Predicts the value of the output corresponding to the specified features. |
Predict | Predicts the probabilities of each class based on the specified features. |
PredictProbabilitiesInto(IDataFrame, Matrix<Double>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified input.
public Matrix<double> PredictProbabilitiesInto(
IDataFrame features,
Matrix<double>? probabilities,
ModelInputFormat format = ModelInputFormat.Automatic
)
Parameters
- features IDataFrame
- A data frame that contains the input features for the regression.
- probabilities Matrix<Double>
- The matrix that is to hold the result. May be null.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
Matrix<Double>The predicted value.
PredictProbabilitiesInto(Matrix<T>, Matrix<Double>, ModelInputFormat)
Predicts the value of the output corresponding to
the specified features.
public Matrix<double> PredictProbabilitiesInto(
Matrix<T> features,
Matrix<double>? probabilities,
ModelInputFormat format = ModelInputFormat.Automatic
)
Parameters
- features Matrix<T>
- A matrix that contains the input values for the regression.
- probabilities Matrix<Double>
- A matrix that is to hold the result. May be null.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
Matrix<Double>The predicted value.
PredictProbabilitiesInto(Vector<T>, Vector<Double>, ModelInputFormat)
Predicts the probabilities of each class based on
the specified features.
public Vector<double> PredictProbabilitiesInto(
Vector<T> features,
Vector<double>? probabilities,
ModelInputFormat format = ModelInputFormat.Automatic
)
Parameters
- features Vector<T>
- A vector that contains the input values for the regression.
- probabilities Vector<Double>
- The vector that is to hold the result. May be null.
- format ModelInputFormat (Optional)
- A ModelInputFormat value that specifies how the elements in features relate to the variables in the model.
Return Value
Vector<Double>The predicted value.