24 namespace learningmachine {
37 std::ostringstream buffer;
38 buffer <<
"Input: [" << this->
input.toString() <<
"; " <<
"] Desired: [" << this->
desired.toString() <<
"; " <<
"] Predicted: [" << this->
predicted.
toString() <<
"]";
virtual void handle(IEvent &e)
Default handler for any Event, which means the Event is ignored.
A class that represents a prediction result.
std::string toString()
Returns a string represenation of the prediction.
yarp::sig::Vector desired
Vector of desired outputs.
std::string toString()
Returns a string representation of the Event.
TrainEvent(const yarp::sig::Vector &input, const yarp::sig::Vector &desired, const Prediction &predicted)
Constructor.
virtual void visit(IEventListener &listener)
Causes the Event to visit an EventListener.
yarp::sig::Vector input
Vector of inputs.
Prediction predicted
Predicted outputs.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.