|
| | ModelEstimator (std::function< Matrix(ConstMatrixRef)> model_function) |
| | Construct a new Model Estimator object.
|
| |
| std::unique_ptr< Estimator > | clone () const override |
| | Clone the estimator by creating a new instance with the same parameters.
|
| |
| Matrix | predict (ConstMatrixRef x) const override |
| | A model is a function that takes a \( n \times d_x \) matrix of row vectors in the input space \( \mathcal{X}
\) and returns a \( n \times d_y \) matrix of row vectors in the output space \( \mathcal{Y} \).
|
| |
| double | score (ConstMatrixRef evaluation_inputs, ConstMatrixRef evaluation_outputs) const override |
| | Score the estimator assigning a numerical value to its accuracy in predicting the evaluation_outputs given the evaluation_inputs.
|
| |
| std::string | to_string () const override |
| | Obtain the string representation of this object.
|
| |
| | Estimator (Parameters parameters=NoParameters, const std::shared_ptr< const Tuner > &tuner=nullptr) |
| | Construct a new Estimator object.
|
| |
| Matrix | operator() (ConstMatrixRef x) const |
| | A model is a function that takes a \( n \times d_x \) matrix of row vectors in the input space \( \mathcal{X}
\) and returns a \( n \times d_y \) matrix of row vectors in the output space \( \mathcal{Y} \).
|
| |
| Estimator & | fit (ConstMatrixRef training_inputs, ConstMatrixRef training_outputs, const Tuner &tuner) |
| | Fit the model to the given data.
|
| |
| Estimator & | fit (ConstMatrixRef training_inputs, ConstMatrixRef training_outputs) |
| | Fit the model to the given data.
|
| |
| Estimator & | fit_online (ConstMatrixRef training_inputs, const OutputComputer &training_outputs, const Tuner &tuner) |
| | Fit the model to the data produced by the training_outputs OutputComputer.
|
| |
| Estimator & | fit_online (ConstMatrixRef training_inputs, const OutputComputer &training_outputs) |
| | Fit the model to the data produced by the training_outputs OutputComputer.
|
| |
| Estimator & | consolidate (ConstMatrixRef training_inputs, ConstMatrixRef training_outputs, const Request request=Request::_) |
| | Consolidate the model, making sure it is ready for use.
|
| |
| Estimator & | consolidate (ConstMatrixRef training_inputs, ConstMatrixRef training_outputs, Requests requests) |
| | Consolidate the model, making sure it is ready for use.
|
| |
| const std::shared_ptr< const Tuner > & | tuner () const |
| | Get read-only access to the tuner of the estimator.
|
| |
| std::shared_ptr< const Tuner > & | m_tuner () |
| | Get read-write access to the tuner of the estimator.
|
| |
| template<IsAnyOf< int, double, const Vector & > T> |
| T | get (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| template<Parameter P> |
| internal::ParameterType< P >::ref_type | get () const |
| | Get the value of the specified parameter.
|
| |
| std::variant< int, double, Vector > | get (Parameter parameter) const |
| | Get the value of the specified parameter.
|
| |
| void | set (Parameter parameter, const std::variant< int, double, Vector > &value) |
| | Set the parameter to the indicated value.
|
| |
| template<Parameter P> |
| void | set (const std::variant< int, double, Vector > &value) |
| | Set the parameter to the indicated value.
|
| |
| void | set (Parameter parameter, std::size_t idx, const std::variant< std::vector< int >, std::vector< double >, std::vector< Vector > > &values) |
| | Set the parameter to the index-th value among the indicated values.
|
| |
| template<Parameter P> |
| void | set (std::size_t idx, const std::variant< std::vector< int >, std::vector< double >, std::vector< Vector > > &values) |
| | Set the parameter to the index-th value among the indicated values.
|
| |
| virtual void | set (Parameter parameter, int value) |
| | Set the parameter to the indicated value.
|
| |
| virtual void | set (Parameter parameter, double value) |
| | Set the parameter to the indicated value.
|
| |
| virtual void | set (Parameter parameter, const Vector &value) |
| | Set the parameter to the indicated value.
|
| |
| template<Parameter P> |
| void | set (typename internal::ParameterType< P >::ref_type value) |
| | Set the parameter to the indicated value.
|
| |
| bool | has (const Parameter parameter) const |
| | Check whether the parameter is present in this object.
|
| |
| Parameters | parameters () const |
| | Get read-only access to the parameters of the parametrizable object.
|
| |
| std::vector< Parameter > | parameters_list () const |
| | Get read-only access to the list of parameters of the parametrizable object.
|
| |
| Parametrizable & | load (const Parametrizable &o) |
| | Load parameters from another Parametrizable object.
|
| |
Dummy estimator that uses a user-defined function to make predictions.
Useful for testing, in a context that assumes perfect knowledge of the system dynamics.