|
PineForge HPO 0.1.0
Native hyperparameter optimization for PineForge strategies
|
Seeded independent sampler with replacement. More...
#include <pineforge/hpo/sampler.hpp>
Inheritance diagram for pineforge::hpo::RandomSampler:Public Member Functions | |
| RandomSampler (SearchSpace space, std::uint64_t seed, std::uint64_t max_candidates=0) | |
Constructs a random sampler; max_candidates == 0 means unbounded generation. | |
| std::optional< Candidate > | next () override |
Samples one independent candidate, or returns std::nullopt at the configured limit. | |
| void | reset () override |
| Reseeds the generator and restores the original sequence. | |
| std::uint64_t | generated () const noexcept override |
| Returns the number of candidates issued since construction or reset. | |
| std::uint64_t | seed () const noexcept |
| Returns the reproducibility seed. | |
Public Member Functions inherited from pineforge::hpo::Sampler | |
| virtual | ~Sampler ()=default |
Seeded independent sampler with replacement.
RandomSampler is deterministic for a fixed search space, seed, and call sequence. It does not learn from objective values and does not guarantee unique candidates.
Definition at line 51 of file sampler.hpp.
| pineforge::hpo::RandomSampler::RandomSampler | ( | SearchSpace | space, |
| std::uint64_t | seed, | ||
| std::uint64_t | max_candidates = 0 |
||
| ) |
Constructs a random sampler; max_candidates == 0 means unbounded generation.
|
inlineoverridevirtualnoexcept |
Returns the number of candidates issued since construction or reset.
Implements pineforge::hpo::Sampler.
Definition at line 61 of file sampler.hpp.
|
overridevirtual |
Samples one independent candidate, or returns std::nullopt at the configured limit.
Implements pineforge::hpo::Sampler.
|
overridevirtual |
Reseeds the generator and restores the original sequence.
Implements pineforge::hpo::Sampler.
|
inlinenoexcept |
Returns the reproducibility seed.
Definition at line 63 of file sampler.hpp.