/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal KravĨenko
 * @date 10.9.18 -
 */

#include "LearningMethod.h"

namespace lib4neuro {
    void GradientLearningMethod::optimize(ErrorFunction& ef,
                                          std::ofstream* ofs) {
        auto& new_ef = dynamic_cast<ErrorFunctionDifferentiable&>(ef);
        this->optimize(new_ef, ofs);
    }
}