28#ifndef __ICUB_OPT_NNTRAINING_H__
29#define __ICUB_OPT_NNTRAINING_H__
32#include <yarp/os/all.h>
33#include <yarp/sig/all.h>
38 #pragma warning(disable:4250)
83 virtual bool train(
const unsigned int numHiddenNodes,
const std::deque<yarp::sig::Vector> &in,
84 const std::deque<yarp::sig::Vector> &
out, std::deque<yarp::sig::Vector> &pred,
96 virtual bool retrain(
const std::deque<yarp::sig::Vector> &in,
const std::deque<yarp::sig::Vector> &
out,
97 std::deque<yarp::sig::Vector> &pred,
double &
error);
Feed-Forward 2 layers Neural Network with a tansig function for the hidden nodes and a purelin for th...
Feed-Forward 2 layers Neural Network.
Class to deal with training of Feed-Forward 2 layers Neural Network with a tansig function for the hi...
Class to deal with training of Feed-Forward 2 layers Neural Network using IpOpt.
ff2LayNNTrain()
Default constructor.
void setBounds(const yarp::os::Property &bounds)
Allow specifying the bounds for training network's parameters.
yarp::os::Property bounds
virtual bool train(const unsigned int numHiddenNodes, const std::deque< yarp::sig::Vector > &in, const std::deque< yarp::sig::Vector > &out, std::deque< yarp::sig::Vector > &pred, double &error)
Train the network through optimization.
virtual bool retrain(const std::deque< yarp::sig::Vector > &in, const std::deque< yarp::sig::Vector > &out, std::deque< yarp::sig::Vector > &pred, double &error)
Retrain the network through optimization.
virtual ~ff2LayNNTrain()
Default destructor.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.