Trains the classification neural network using supplied trainer and patterns.
Namespace:
Imsl.DataMining.Neural
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
Visual Basic (Declaration) |
---|
Public Overridable Sub Train ( _
trainer As ITrainer, _
xData As Double(,), _
yData As Integer() _
) |
Visual C++ |
---|
public:
virtual void Train(
ITrainer^ trainer,
array<double,2>^ xData,
array<int>^ yData
) |
Parameters
- trainer
- Type: Imsl.DataMining.Neural..::.ITrainer
A Trainer object, which is used to train the
network. The error function in any QuasiNewton
trainer included in trainer should be set to
the error function from this class using the Error method
provided by this class.
- xData
- Type: array<
System..::.Double
,2>[,](,)[,]
A double matrix containing the input training
patterns. The number of columns in xData must
equal the number of nodes in the input layer. Each row of
xData contains a training pattern.
- yData
- Type: array<
System..::.Int32
>[]()[]
An int array containing the output classification values.
These values must be 0 or 1.
See Also