19#ifndef LM_RLSLEARNER__
20#define LM_RLSLEARNER__
22#include <yarp/sig/Matrix.h>
28namespace learningmachine {
81 RLSLearner(
unsigned int dom = 1,
unsigned int cod = 1,
double lambda = 1.0);
101 virtual void feedSample(
const yarp::sig::Vector& input,
const yarp::sig::Vector& output);
106 virtual void train();
143 virtual void readBottle(yarp::os::Bottle& bot);
173 virtual bool configure(yarp::os::Searchable& config);
An generalized interface for a learning machine with a fixed domain and codomain size.
A class that represents a prediction result.
Recursive Regularized Least Squares (a.k.a.
void setCoDomainSize(unsigned int size)
Mutator for the codomain size.
void reset()
Forget everything and start over.
RLSLearner * clone()
Asks the learning machine to return a clone of its type.
virtual std::string getInfo()
Asks the learning machine to return a string containing information on its operation so far.
virtual void readBottle(yarp::os::Bottle &bot)
Unserializes a machine from a bottle.
virtual Prediction predict(const yarp::sig::Vector &input)
Ask the learning machine to predict the output for a given input.
virtual std::string getConfigHelp()
Asks the learning machine to return a string containing the list of configuration options that it sup...
void setDomainSize(unsigned int size)
Mutator for the domain size.
virtual void writeBottle(yarp::os::Bottle &bot)
virtual void train()
Train the learning machine on the examples that have been supplied so far.
virtual ~RLSLearner()
Destructor.
void setLambda(double l)
Sets the regularization parameter \lambda to a specified value.
RLSLearner & operator=(const RLSLearner &other)
Assignment operator.
double getLambda()
Accessor for the regularization parameter \lambda.
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 bool configure(yarp::os::Searchable &config)
Change parameters.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.