Skip to content
Snippets Groups Projects
NeuronLinear.cpp 891 B
Newer Older
#include "NeuronLinear.h"
#include "NeuronConstant.h"
#include "NeuronSerialization.h"
#include "NeuronLinearSerialization.h"
BOOST_CLASS_EXPORT_IMPLEMENT(lib4neuro::NeuronLinear);
namespace lib4neuro {
    NeuronLinear::NeuronLinear() {}
Martin Beseda's avatar
Martin Beseda committed
    double NeuronLinear::activate(double x,
                                  double b) {
Martin Beseda's avatar
Martin Beseda committed
    double NeuronLinear::activation_function_eval_derivative_bias(double x,
                                                                  double b) {
Martin Beseda's avatar
Martin Beseda committed
    double NeuronLinear::activation_function_eval_derivative(double x,
                                                             double b) {
Martin Beseda's avatar
Martin Beseda committed
    Neuron* NeuronLinear::get_derivative() {
        NeuronConstant* output = new NeuronConstant(1.0);