private void initializeNetwork ( ) { this . hiddenLayerSize = this . hiddenLayerOption . getValue ( ) ; this . learningRate = this . learningRateOption . getValue ( ) ; this . threshold = this . thresholdOption . getValue ( ) ; double [ ] [ ] randomWeightsOne = new double [ this . hiddenLayerSize ] [ this . numAttributes ] ; double [ ] [ ] randomWeightsTwo = new double [ this . numAttributes ] [ this . hiddenLayerSize ] ; for ( int i = 0 ; i < this . numAttributes ; i ++ ) { for ( int j = 0 ; j < this . hiddenLayerSize ; j ++ ) { randomWeightsOne [ j ] [ i ] = this . classifierRandom . nextDouble ( ) ; randomWeightsTwo [ i ] [ j ] = this . classifierRandom . nextDouble ( ) ; } } this . weightsOne = new Array2DRowRealMatrix ( randomWeightsOne ) ; this . weightsTwo = new Array2DRowRealMatrix ( randomWeightsTwo ) ; this . biasOne = this . classifierRandom . nextDouble ( ) ; this . biasTwo = this . classifierRandom . nextDouble ( ) ; this . reset = false ; }
Initializes the autoencoder network .