21 #include <yarp/os/Bottle.h>
26 namespace learningmachine {
31 std::cout <<
"TrainEvent: " <<
e.toString() << std::endl;
34 yarp::os::Bottle b,
p;
yarp::os::Port port
The outgoing port for the events.
bool verbose
Verbosity controls whether events are printed to standard output.
yarp::sig::Vector getVariance()
Accessor for the variance of the prediction.
yarp::sig::Vector getPrediction()
Accessor for the expected value of the prediction.
void handle(TrainEvent &e)
Handling of a TrainEvent.
void vectorToBottle(const yarp::sig::Vector &vec, yarp::os::Bottle &bot)
A TrainEvent is raised when the machine handles a training sample.
Prediction & getPredicted()
Accessor for the prediction.
yarp::sig::Vector & getDesired()
Accessor for the vector of desired outputs.
yarp::sig::Vector & getInput()
Accessor for the vector of inputs.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.