Example #1
0
            public Builder LearningPolicy(ILearningPolicy learningPolicy, float momentumRate)
            {
                this.learningPolicy = learningPolicy;
                this.momentumRate   = momentumRate;

                return(this);
            }
Example #2
0
 private TrainingNetwork(float momentumRate, bool shuffle, ILearningPolicy learningPolicy, ILossFunction loss, ILayer[] layers)
     : base(loss, layers)
 {
     this.momentumRate   = momentumRate;
     this.shuffle        = shuffle;
     this.learningPolicy = learningPolicy;
 }