21#include <yarp/os/Bottle.h>
26namespace 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.
yarp::sig::Vector & getInput()
Accessor for the vector of inputs.
yarp::sig::Vector & getDesired()
Accessor for the vector of desired outputs.
Prediction & getPredicted()
Accessor for the prediction.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.