| StatModelTrain Method (InputArray, SampleTypes, InputArray) |
Trains the statistical model
Namespace:
OpenCvSharp.ML
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public virtual bool Train(
InputArray samples,
SampleTypes layout,
InputArray responses
)
Public Overridable Function Train (
samples As InputArray,
layout As SampleTypes,
responses As InputArray
) As Boolean
public:
virtual bool Train(
InputArray^ samples,
SampleTypes layout,
InputArray^ responses
)
abstract Train :
samples : InputArray *
layout : SampleTypes *
responses : InputArray -> bool
override Train :
samples : InputArray *
layout : SampleTypes *
responses : InputArray -> bool
Parameters
- samples
- Type: OpenCvSharpInputArray
training samples - layout
- Type: OpenCvSharp.MLSampleTypes
SampleTypes value - responses
- Type: OpenCvSharpInputArray
vector of responses associated with the training samples.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.ML.StatModel.Train(OpenCvSharp.InputArray,OpenCvSharp.ML.SampleTypes,OpenCvSharp.InputArray)"]
See Also