19#ifndef LM_DATASETRECORDER__ 
   20#define LM_DATASETRECORDER__ 
   28namespace learningmachine {
 
   76        precision(other.precision), sampleCount(other.sampleCount) {
 
 
   83        if(!this->stream.is_open()) {
 
 
   96    virtual void feedSample(
const yarp::sig::Vector& input, 
const yarp::sig::Vector& output);
 
  114        this->stream.close();
 
  115        this->sampleCount = 0;
 
 
  138    virtual void writeBottle(yarp::os::Bottle& bot) 
const;
 
  143    virtual void readBottle(yarp::os::Bottle& bot);
 
  148    virtual bool configure(yarp::os::Searchable& config);
 
 
 
This 'machine learner' demonstrates how the IMachineLearner interface can be used to easily record sa...
 
DatasetRecorder(const DatasetRecorder &other)
Copy constructor.
 
virtual void feedSample(const yarp::sig::Vector &input, const yarp::sig::Vector &output)
Provide the learning machine with an example of the desired mapping.
 
virtual void readBottle(yarp::os::Bottle &bot)
Unserializes a machine from a bottle.
 
void reset()
Forget everything and start over.
 
virtual ~DatasetRecorder()
Destructor.
 
Prediction predict(const yarp::sig::Vector &input)
Ask the learning machine to predict the output for a given input.
 
DatasetRecorder()
Constructor.
 
virtual void writeBottle(yarp::os::Bottle &bot) const
Writes a serialization of the machine into a bottle.
 
DatasetRecorder & operator=(const DatasetRecorder &other)
Assignment operator.
 
virtual void train()
Train the learning machine on the examples that have been supplied so far.
 
virtual std::string getConfigHelp()
Asks the learning machine to return a string containing the list of configuration options that it sup...
 
virtual bool configure(yarp::os::Searchable &config)
Change parameters.
 
DatasetRecorder * clone()
Asks the learning machine to return a clone of its type.
 
std::string getInfo()
Asks the learning machine to return a string containing information on its operation so far.
 
A generalized interface for a learning machine for offline and online learning machines (e....
 
void setName(const std::string &name)
Set the name of this machine learning technique.
 
A class that represents a prediction result.
 
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.