alirezamika / alirezamika/evostra

Improve sampler.

Offen
#6 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
271
Forks
47
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

https://github.com/alirezamika/evostra/blob/3819a3c1e9f16a99e90f874c141fddb3e26f18e9/evostra/algorithms/evolution_strategy.py#L44

Actually, it makes sense to improve this step by the following.
Let's assume that we are solving a huge optimization problem. What is the point of generating a random gaussian at each step? We can generate a huge list of gaussian at the very beginning of the training and at each step we just sample subset of given length from the already generated list of gaussians.

Moreover, if a neural network is super huge (or our objective has a huge number of parameters) it might be costly to generate (or sample from already generated) gaussian at each step. We may do that for a small subset of weights (=parameters) which should significantly speed up convergence in the case of huge parameters space.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.