Skip to content

Commit 2e736d6

Browse files
committed
switch from SNES to CMAES
1 parent 128d461 commit 2e736d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/project-ideas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Could this be a useful medium/input?
1515
* If we let evolution go on for a looooong time, do we ever observe things like double descent or grokking take place with generalization?
1616
* How well would a purely supervised learner do at this?
17+
* Does CMA-ES outperform SNES on this task?
1718

1819
## Experiments
1920
* "Hall of champions" for improved self-play and generality.

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from evotorch import Problem
2-
from evotorch.algorithms import SNES
2+
from evotorch.algorithms import SNES, PyCMAES
33
from evotorch.logging import StdOutLogger, PandasLogger, PicklingLogger
44
import matplotlib.pyplot as plt
55
from config.config_agents import *
@@ -44,7 +44,8 @@ def main():
4444
problem = Problem(*args, **kwargs)
4545

4646
# Initialize the SNES algorithm to solve the problem
47-
searcher = SNES(problem, popsize=popsize, stdev_init=stdev_init)
47+
# searcher = SNES(problem, popsize=popsize, stdev_init=stdev_init, distributed=distributed)
48+
searcher = PyCMAES(problem, popsize=popsize, stdev_init=stdev_init)
4849

4950
# Initialize loggers
5051
_ = StdOutLogger(searcher, interval=log_interval)

0 commit comments

Comments
 (0)