Click or drag to resize

StatModelExtensionsTrain Method (IStatModel, IInputArray, DataLayoutType, IInputArray)

http://www.emgu.com
Trains the statistical model.

Namespace:  Emgu.CV.ML
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static bool Train(
	this IStatModel model,
	IInputArray samples,
	DataLayoutType layoutType,
	IInputArray responses
)

Parameters

model
Type: Emgu.CV.MLIStatModel
The stat model.
samples
Type: Emgu.CVIInputArray
The training samples.
layoutType
Type: Emgu.CV.ML.MlEnumDataLayoutType
Type of the layout.
responses
Type: Emgu.CVIInputArray
Vector of responses associated with the training samples.

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