Exemple #1
0
        public void createNetwork()
        {
            ActivationFunction threshold = new ActivationTANH();
            this.network = new FeedforwardNetwork();
            this.network.AddLayer(new FeedforwardLayer(threshold, INPUT_SIZE));
            this.network.AddLayer(new FeedforwardLayer(threshold,
                    SineWave.NEURONS_HIDDEN_1));
            if (SineWave.NEURONS_HIDDEN_2 > 0)
            {
                this.network.AddLayer(new FeedforwardLayer(threshold,
                        SineWave.NEURONS_HIDDEN_2));
            }
            this.network.AddLayer(new FeedforwardLayer(threshold, OUTPUT_SIZE));

            this.network.Reset();
        }
 public void createNetwork()
 {
     ActivationFunction threshold = new ActivationTANH();
     this.network = new FeedforwardNetwork();
     this.network.AddLayer(new FeedforwardLayer(threshold,
             PredictSP500.INPUT_SIZE * 2));
     this.network.AddLayer(new FeedforwardLayer(threshold,
             PredictSP500.NEURONS_HIDDEN_1));
     if (PredictSP500.NEURONS_HIDDEN_2 > 0)
     {
         this.network.AddLayer(new FeedforwardLayer(threshold,
                 PredictSP500.NEURONS_HIDDEN_2));
     }
     this.network.AddLayer(new FeedforwardLayer(threshold,
             PredictSP500.OUTPUT_SIZE));
     this.network.Reset();
 }