| StatModelTrain Method (TrainData, Int32) |
Trains the statistical model
Namespace:
OpenCvSharp.ML
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual bool Train(
TrainData trainData,
int flags = 0
)
Public Overridable Function Train (
trainData As TrainData,
Optional flags As Integer = 0
) As Boolean
public:
virtual bool Train(
TrainData^ trainData,
int flags = 0
)
abstract Train :
trainData : TrainData *
?flags : int
(* Defaults:
let _flags = defaultArg flags 0
*)
-> bool
override Train :
trainData : TrainData *
?flags : int
(* Defaults:
let _flags = defaultArg flags 0
*)
-> bool
Parameters
- trainData
- Type: OpenCvSharp.MLTrainData
training data that can be loaded from file using TrainData::loadFromCSV
or created with TrainData::create. - flags (Optional)
- Type: SystemInt32
optional flags, depending on the model. Some of the models can be updated with the
new training samples, not completely overwritten (such as NormalBayesClassifier or ANN_MLP).
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.ML.StatModel.Train(OpenCvSharp.ML.TrainData,System.Int32)"]
See Also