Click or drag to resize

StatModelExtensionsTrain Method (IStatModel, TrainData, Int32)
Trains the statistical model.

Namespace:  Emgu.CV.ML
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public static bool Train(
	this IStatModel model,
	TrainData trainData,
	int flags = 0


Type: Emgu.CV.MLIStatModel
The model.
Type: Emgu.CV.MLTrainData
The train data.
flags (Optional)
Type: SystemInt32
The flags.

Return Value

Type: Boolean
True if the training is successful.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStatModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also