Emgu CV Library Documentation
Train Method (trainData, responses, sampleWeights, sampleIdx, parameters, flag)
NamespacesEmgu.CV.MLANN_MLPTrain(Matrix<(Of <(Single>)>), Matrix<(Of <(Single>)>), Matrix<(Of <(Single>)>), Matrix<(Of <(Int32>)>), MCvANN_MLP_TrainParams, ANN_MLP_TRAINING_FLAG)

www.emgu.com/wiki
Train the ANN_MLP model with the specific paramters
Declaration Syntax
C#Visual BasicVisual C++
public int Train(
	Matrix<float> trainData,
	Matrix<float> responses,
	Matrix<float> sampleWeights,
	Matrix<int> sampleIdx,
	MCvANN_MLP_TrainParams parameters,
	ANN_MLP_TRAINING_FLAG flag
)
Public Function Train ( _
	trainData As Matrix(Of Single), _
	responses As Matrix(Of Single), _
	sampleWeights As Matrix(Of Single), _
	sampleIdx As Matrix(Of Integer), _
	parameters As MCvANN_MLP_TrainParams, _
	flag As ANN_MLP_TRAINING_FLAG _
) As Integer
public:
int Train(
	Matrix<float>^ trainData, 
	Matrix<float>^ responses, 
	Matrix<float>^ sampleWeights, 
	Matrix<int>^ sampleIdx, 
	MCvANN_MLP_TrainParams parameters, 
	ANN_MLP_TRAINING_FLAG flag
)
Parameters
trainData (Matrix<(Of <(Single>)>))
The training data. A 32-bit floating-point, single-channel matrix, one vector per row
responses (Matrix<(Of <(Single>)>))
A floating-point matrix of the corresponding output vectors, one vector per row.
sampleWeights (Matrix<(Of <(Single>)>))
It is not null only for RPROP. The optional floating-point vector of weights for each sample. Some samples may be more important than others for training, e.g. user may want to gain the weight of certain classes to find the right balance between hit-rate and false-alarm rate etc
sampleIdx (Matrix<(Of <(Int32>)>))
Can be null if not needed. When specified, identifies samples of interest. It is a Matrix>int< of nx1
parameters (MCvANN_MLP_TrainParams)
The parameters for ANN_MLP
flag (ANN_MLP_TRAINING_FLAG)
The traning flag
Return Value
The number of done iterations

Assembly: Emgu.CV.ML (Module: Emgu.CV.ML) Version: 1.0.0.0 (1.0.0.0)