Skip to content

MetaGen 1.9.0

Latest

Choose a tag to compare

@davgutavi davgutavi released this 01 Dec 11:30

MetaGen 1.9.0 adds GaussianProcessSearch, Bayesian optimization with a Gaussian process, for
fitness functions that are expensive to evaluate; KernelTPE scores integers and numbers with a
step by their cell of the grid, so its seeded runs on such domains give other results than in
1.8.0; and every public class, method and function of the package has a docstring.

New

  • GaussianProcessSearch, Bayesian optimization with a Gaussian process: every iteration
    fits a Matérn 5/2 process to the solutions evaluated so far and evaluates the solution that
    maximizes the logarithm of the expected improvement, for fitness functions that are
    expensive to evaluate, such as training a model. It follows the Gaussian process sampler of
    Optuna, on NumPy and SciPy, and takes every kind of variable of a domain: groups,
    structures, conditional variables, subsets and logarithmic scales. Its linear algebra runs
    on one thread, through threadpoolctl, a new dependency of the package. Under the global
    distribution model, an iteration fits one process to the whole history and proposes one
    solution per slice, each one with those proposed before it taken as evaluated at the best
    value so far.

Changes

  • KernelTPE scores an integer or a number with a step by the probability of its cell
    of the grid, half a step to each side, as Hyperopt scores a quantized variable, instead of
    by the density at the value. Runs with a seed give other results on domains with integers or
    steps; on domains of reals without a step they are the same.
  • Docstrings cover every public class, method and function of the package, so the API
    reference documents each of them.
  • The guide to choosing a metaheuristic says which one to start with when tuning
    hyperparameters on a short budget, and that the memetic algorithm suits longer runs.
  • The history file of a run is read and written as UTF-8 whatever the locale of the system.