package com.naaturel.ANN.implementation.simplePerceptron;

import com.naaturel.ANN.domain.abstraction.AlgorithmStrategy;
import com.naaturel.ANN.domain.abstraction.TrainingContext;

public class SimpleErrorRegistrationStrategy implements AlgorithmStrategy {

    private final TrainingContext context;

    public SimpleErrorRegistrationStrategy(TrainingContext context) {
        this.context = context;
    }

    @Override
    public void apply() {
        context.globalLoss += context.localLoss;
    }
}
