Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Genetic Tuning Improvements #453

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Genetic Tuning Improvements #453

wants to merge 6 commits into from

Conversation

thetheodor
Copy link

this PR replaces #160

Theodoros Theodoridis added 6 commits May 28, 2018 15:55
The previous implementation assumed that a search strategy's
iteration consist of only one step, however it is possible that
multiple steps that depend on each other (and are not full
"iterations") are necessary.
Using an unscaled fitness value for selection is problematic:

-Outstanding individuals take over very quickly, this leads to
premature convergence.

-When fitness values are close together, very litle selection
pressure is applied and selection is almost uniformly random.
Having slightly better fitness does not improve an individual's
survival chances.

-Transposing the fitness function (e.g. adding a constant value)
changes the selection probabilities even though the location of the
optimum (and the "shape" of the fitness) remain unchanged.

Scaling the fitness function helps ameliorate those issues.

Sigma scaling is used:

fitness' = max(fitness - (mean_fitness - 2 * std_fitness), 0)
Stochastic Universal Sampling is an improvement upon the roulette
algorithm that was previously used
Previously each generation had mu candidates and generated mu
children which all survided. This meant that really bad candidates
that were randomly generated would survive across generations.

With this change, lambda (typically larger thatn mu) children are
generated and the best mu survive. The previous behaviour is a
special case in which lambda = mu.
Candidates that survive across generations need not be benchmarked
again and thus no compilation and gpu jobs have to be created for
them.
Copy link
Contributor

@nicolasvasilache nicolasvasilache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ttheodor could you please rebase this so I can launch a tuning run?

@nicolasvasilache
Copy link
Contributor

@caffe2bot retest this please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants