tpe
This crate provides a hyperparameter optimization algorithm using TPE (Tree-structured Parzen Estimator).
Examples
Minimize the result of a quadratic function
An example optimizing a simple quadratic function which has one numerical and one categorical parameter.
use SeedableRng as _;
let choices = ;
let mut optim0 =
new;
let mut optim1 =
new;
let mut best_value = f64INFINITY;
let mut rng = from_seed;
for _ in 0..100
assert_eq!;
References
Please refer to the following papers about the details of TPE: