Beispiel #1
0
 public override void Update(AdaptationStrategy strategy)
 {
     Biases.Add(strategy.BiasesUpdate(_biasesGradientAccumulator));
     Weights.Add(strategy.WeightsUpdate(_weightsGradientAccumulator));
     _biasesGradientAccumulator.Zero();
     _weightsGradientAccumulator.Zero();
 }
Beispiel #2
0
 public void Update(AdaptationStrategy strategy)
 {
     foreach (TrainableComponent component in BackwardsTrainableComponentEnumeration)
     {
         component.Update(strategy);
     }
 }
Beispiel #3
0
 public Trainer(ITrainable component, CostFunction cf, AdaptationStrategy strategy)
 {
     _component       = component;
     _costFunction    = cf;
     _strategy        = strategy;
     _costAccumulator = 0;
 }
Beispiel #4
0
 public override void Update(AdaptationStrategy strategy)
 {
     _component.Update(strategy);
 }
Beispiel #5
0
 public NetworkTrainer(LinearTwoLayerTestNetwork network, IEnumerable <VectorPair> trainingdata)
 {
     _network      = network;
     _trainingData = trainingdata;
     _strategy     = new GradientDescent(1.0, 1);
 }
Beispiel #6
0
 public abstract void Update(AdaptationStrategy strategy);