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: 3.2.0.2682 (3.2.0.2682)
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

[Missing <returns> documentation for "M:Emgu.CV.ML.StatModelExtensions.Train(Emgu.CV.ML.IStatModel,Emgu.CV.IInputArray,Emgu.CV.ML.MlEnum.DataLayoutType,Emgu.CV.IInputArray)"]

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