Class StatModel
- Namespace
- OpenCvSharp.ML
- Assembly
- OpenCvSharp.dll
Base class for statistical models in ML
public abstract class StatModel : Algorithm, IDisposable
- Inheritance
-
StatModel
- Implements
- Derived
- Inherited Members
Constructors
- StatModel(nint, nint, Action<nint>)
Constructor for the factory pattern (cv::Ptr<T>* + raw T*).
Methods
- CalcError(TrainData, bool, OutputArray)
Computes error on the training or test dataset
- GetVarCount()
Returns the number of variables in training samples
- IsClassifier()
Returns true if the model is classifier
- IsTrained()
Returns true if the model is trained
- Predict(InputArray, OutputArray, Flags)
Predicts response(s) for the provided sample(s)
- Train(InputArray, SampleTypes, InputArray)
Trains the statistical model
- Train(TrainData, int)
Trains the statistical model