Exemplo n.º 1
0
 public void LoadTo(ESManager m)
 {
     m.roundTime        = this.roundTime;
     m.generation       = this.generation;
     m.learnRate        = this.learnRate;
     m.mutationRate     = this.mutationRate;
     m.mutationStrength = this.mutationStrength;
     m.avgGrades        = this.avgGrades;
     m.weights          = this.weightsData.ToWeights();
 }
Exemplo n.º 2
0
 public ESManagerData(ESManager m)
 {
     this.generation       = m.generation;
     this.learnRate        = m.learnRate;
     this.mutationRate     = m.mutationRate;
     this.mutationStrength = m.mutationStrength;
     this.avgGrades        = m.avgGrades;
     this.roundTime        = m.roundTime;
     this.weightsData      = new WeightsData(m.weights, m.counts);
 }