Skip to content
Snippets Groups Projects
ConnectionFunctionIdentity.h 1.33 KiB
Newer Older
/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal Kravčenko
 * @date 14.6.18 -
 */

#ifndef INC_4NEURO_CONNECTIONWEIGHTIDENTITY_H
#define INC_4NEURO_CONNECTIONWEIGHTIDENTITY_H

class ConnectionFunctionIdentity : public ConnectionFunctionGeneral {
//    friend class boost::serialization::access;
//    friend class NeuralNetwork;
//protected:
//    template<class Archive>
//    void serialize(Archive & ar, const unsigned int version){
//        ar & boost::serialization::base_object<ConnectionFunctionGeneral>(*this);
//        ar & this->param_idx;
//        ar & this->is_unitary;
//    };
    LIB4NEURO_API ConnectionFunctionIdentity( size_t pidx );
    LIB4NEURO_API double eval( std::vector<double> &parameter_space ) override;
Michal Kravcenko's avatar
Michal Kravcenko committed

    /**
     *
     * @param weight_gradient
     * @param alpha
     */
    LIB4NEURO_API void eval_partial_derivative(std::vector<double> &parameter_space, std::vector<double> &weight_gradient, double alpha) override;