A ResumableTrial that additionally exposes its live weights (a flat vector) and its current hyperparameter Configuration, both readable and replaceable mid-training.
More...
#include <pbt_trial.hpp>
|
| | ~PBTResumableTrial () override=default |
| |
| virtual std::vector< double > | GetWeights () const =0 |
| | This trial's current live weights, flattened to a single vector.
|
| |
| virtual void | SetWeights (const std::vector< double > &weights)=0 |
| | Overwrites this trial's live weights.
|
| |
| virtual Configuration | GetHyperparameters () const =0 |
| | This trial's current hyperparameter configuration.
|
| |
| virtual void | SetHyperparameters (const Configuration &config)=0 |
| | Overwrites this trial's hyperparameter configuration (e.g. learning rate).
|
| |
| virtual | ~ResumableTrial ()=default |
| |
| virtual double | TrainForEpochs (int num_epochs)=0 |
| | Trains this trial for num_epochs additional epochs (continuing from wherever this trial's own training left off, not restarting), then returns the current validation metric (maximization convention, matching every other HPO algorithm in this campaign – a caller minimizing a loss negates it).
|
| |
A ResumableTrial that additionally exposes its live weights (a flat vector) and its current hyperparameter Configuration, both readable and replaceable mid-training.
◆ ~PBTResumableTrial()
| pulsatrix::PBTResumableTrial::~PBTResumableTrial |
( |
| ) |
|
|
overridedefault |
◆ GetHyperparameters()
| virtual Configuration pulsatrix::PBTResumableTrial::GetHyperparameters |
( |
| ) |
const |
|
pure virtual |
This trial's current hyperparameter configuration.
◆ GetWeights()
| virtual std::vector< double > pulsatrix::PBTResumableTrial::GetWeights |
( |
| ) |
const |
|
pure virtual |
This trial's current live weights, flattened to a single vector.
◆ SetHyperparameters()
| virtual void pulsatrix::PBTResumableTrial::SetHyperparameters |
( |
const Configuration & |
config | ) |
|
|
pure virtual |
Overwrites this trial's hyperparameter configuration (e.g. learning rate).
◆ SetWeights()
| virtual void pulsatrix::PBTResumableTrial::SetWeights |
( |
const std::vector< double > & |
weights | ) |
|
|
pure virtual |
Overwrites this trial's live weights.
- Exceptions
-
| Whatever | the concrete implementation throws on a size mismatch. |
The documentation for this class was generated from the following file: