示例#1
0
        public ForeNetwork(SimpleMatrix input, SimpleMatrix output, int hiddenNum)
        {
            InputData    = input;
            OutputData   = output;
            HiddenNumber = hiddenNum;
            SampleSize   = input.Row;
            InputNumber  = input.Column;
            OutputNumber = output.Column;

            // init matrix
            WeightInput  = new SimpleMatrix(InputNumber, HiddenNumber);
            WeightOutput = new SimpleMatrix(HiddenNumber, OutputNumber);
            WeightInput.Randomize();
            WeightOutput.Randomize();

            //MaxIterNum = 300;
            Trained = false;
        }