Skip to main content

hyperopt_samplers/
lib.rs

1//! # hyperopt-samplers
2//!
3//! Pluggable [`Sampler`](hyperopt_core::Sampler) implementations for
4//! `hyperopt-rs`. All three are interchangeable through the same
5//! [`Study`](hyperopt_core::Study) API:
6//!
7//! - [`RandomSampler`] — independent random draws; the baseline.
8//! - [`GridSampler`] — exhaustive enumeration over a caller-provided grid.
9//! - [`TpeSampler`] — adaptive Tree-structured Parzen Estimator, wrapping the
10//!   [`tpe`](https://docs.rs/tpe) crate.
11//! - [`CmaEsSampler`] — Covariance Matrix Adaptation Evolution Strategy for
12//!   continuous spaces, implemented from scratch.
13
14mod cmaes;
15mod grid;
16mod random;
17mod tpe_sampler;
18
19pub use cmaes::{BoundHandling, CmaEsSampler};
20pub use grid::GridSampler;
21pub use random::RandomSampler;
22pub use tpe_sampler::TpeSampler;