Encog.Neural.SOM.Training.Neighborhood.BasicTrainSOM.BasicTrainSOM C# (CSharp) Method

BasicTrainSOM() public method

Create an instance of competitive training.
public BasicTrainSOM ( SOMNetwork network, double learningRate, IMLDataSet training, INeighborhoodFunction neighborhood ) : System
network Encog.Neural.SOM.SOMNetwork The network to train.
learningRate double The learning rate, how much to apply per iteration.
training IMLDataSet The training set (unsupervised).
neighborhood INeighborhoodFunction The neighborhood function to use.
return System
        public BasicTrainSOM(SOMNetwork network, double learningRate,
                             IMLDataSet training, INeighborhoodFunction neighborhood)
            : base(TrainingImplementationType.Iterative)
        {
            _neighborhood = neighborhood;
            Training = training;
            _learningRate = learningRate;
            _network = network;
            _inputNeuronCount = network.InputCount;
            _outputNeuronCount = network.OutputCount;
            _forceWinner = false;
            Error = 0;

            // setup the correction matrix
            _correctionMatrix = new Matrix(_inputNeuronCount,
                                          _outputNeuronCount);

            // create the BMU class
            _bmuUtil = new BestMatchingUnit(network);
        }