19 #ifndef LM_TRAINEVENT__
20 #define LM_TRAINEVENT__
24 #include <yarp/sig/Vector.h>
31 namespace learningmachine {
A class that represents a prediction result.
A TrainEvent is raised when the machine handles a training sample.
Prediction & getPredicted()
Accessor for 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.
yarp::sig::Vector & getDesired()
Accessor for the vector of desired outputs.
virtual void visit(IEventListener &listener)
Causes the Event to visit an EventListener.
virtual ~TrainEvent()
Destructor (empty).
yarp::sig::Vector & getInput()
Accessor for the vector of inputs.
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.