|
|
lucid
0.0.1
Lifting-based Uncertain Control Invariant Dynamics
|
Tuner that adjusts the kernel parameters using the median heuristic method. More...
#include <MedianHeuristicTuner.h>
Public Member Functions | |
| std::string | to_string () const override |
| Obtain the string representation of this object. | |
Public Member Functions inherited from lucid::Tuner | |
| void | tune (Estimator &estimator, ConstMatrixRef training_inputs, ConstMatrixRef training_outputs) const |
| Optimise the kernel hyperparameters. | |
| void | tune_online (Estimator &estimator, ConstMatrixRef training_inputs, const OutputComputer &training_outputs) const |
| Optimise the kernel hyperparameters. | |
Private Member Functions | |
| void | tune_impl (Estimator &estimator, ConstMatrixRef training_inputs, const OutputComputer &training_outputs) const override |
| Optimise the kernel hyperparameters. | |
Tuner that adjusts the kernel parameters using the median heuristic method.
It computes the median of pairwise distances between input data points for each dimension. These computed medians are used to update the \( \sigma_l \) parameters of the kernel in the given estimator. More specifically, given a set of training inputs \( \{x_1, x_2, \ldots, x_n\} \) from \( \texttip{\mathcal{X}}{Polish sample vector space} \subseteq \mathbb{R}^d \),
\[\sigma_l = \sqrt{\text{median}\{\|x_i - x_j\|^2 : 1 \le i < j \le n\}} \]
Once the kernel parameters are updated, the estimator is consolidated using the training data.
|
nodiscardoverridevirtual |
Obtain the string representation of this object.
Reimplemented from lucid::Tuner.
|
overrideprivatevirtual |
Optimise the kernel hyperparameters.
Starting from the initial guess, the optimiser finds the best hyperparameters for the kernel. It is up to the subclass to determine the optimisation algorithm used.
| estimator | estimator to optimise |
| training_inputs | training input data |
| training_outputs | training output data. It uses an OutputComputer to compute the outputs when needed |
Implements lucid::Tuner.