« Back to top page

Differential Evolution

Differential Evolution

Differential Evolution Sampler

Abstract Differential Evolution (DE) Sampler This implementation introduces a novel Differential Evolution (DE) sampler, tailored to optimize both numerical and categorical hyperparameters effectively. The DE sampler integrates a hybrid approach: Differential Evolution for Numerical Parameters: Exploiting DE’s strengths, the sampler efficiently explores numerical parameter spaces through mutation, crossover, and selection mechanisms. Random Sampling for Categorical Parameters: For categorical variables, the sampler employs random sampling, ensuring comprehensive coverage of discrete spaces. The sampler also supports dynamic search spaces, enabling seamless adaptation to varying parameter dimensions during optimization.

Differential Evolution with Hyperband (DEHB) Sampler

Class or Function Names DEHBSampler DEHBPruner Installation There is no additional installation required for this sampler and pruner, but if you want to run the example.py script, you need to install the following packages: $ pip install sklearn Example sampler = DEHBSampler() pruner = DEHBPruner(min_resource=1, max_resource=n_train_iter, reduction_factor=3) study = optuna.create_study(sampler=sampler, pruner=pruner) See example.py for a full example. The following figures are obtained from the analysis of the optimization. Others References Awad, N.

Multi-population based Differential Evolution (MDE) Sampler

Abstract Multi-population based Differential Evolution (MDE) is a differential evolution variant that has no control parameters to tune apart from the population size. It keeps a full population A of 3N vectors. In every generation it draws a sub-population B of N random members of A and builds one trial vector per member: the scale factor is drawn anew for every vector as |a - rand^b| * randn^d with random integer exponents, which mixes many small and occasional large steps, the difference vector dx - dy mixes the best solution, two random members of B and the current member coordinate-wise, a random, parameter-free crossover map decides which coordinates are taken from the mutant, a tiny multiplicative noise term, computed from the previous sub-population, is added, variables that leave the box are re-sampled uniformly inside the bounds.