pulsatrix
Loading...
Searching...
No Matches
pbt_trial.hpp
Go to the documentation of this file.
1
17#pragma once
18
19#include <vector>
20
23
24namespace pulsatrix {
25
31public:
32 ~PBTResumableTrial() override = default;
33
35 [[nodiscard]] virtual std::vector<double> GetWeights() const = 0;
36
41 virtual void SetWeights(const std::vector<double>& weights) = 0;
42
44 [[nodiscard]] virtual Configuration GetHyperparameters() const = 0;
45
47 virtual void SetHyperparameters(const Configuration& config) = 0;
48};
49
50} // namespace pulsatrix
A ResumableTrial that additionally exposes its live weights (a flat vector) and its current hyperpara...
Definition pbt_trial.hpp:30
virtual void SetHyperparameters(const Configuration &config)=0
Overwrites this trial's hyperparameter configuration (e.g. learning rate).
virtual Configuration GetHyperparameters() const =0
This trial's current hyperparameter configuration.
~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.
A single hyperparameter configuration's live, resumable training state – own whatever network/optimiz...
Definition successive_halving.hpp:50
Definition acquisition_functions.hpp:16
std::map< std::string, ConfigValue > Configuration
A concrete hyperparameter configuration: parameter name -> concrete value.
Definition search_space.hpp:46
Typed hyperparameter search-space description: named parameters, each continuous, log-uniform,...
Successive Halving (the rung-based promotion mechanism underlying Hyperband and ASHA,...