예제 #1
0
파일: SineWave.cs 프로젝트: DoctorBoo/ML
        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();
        }
예제 #2
0
 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();
 }