gianlucatruda / evocomp

Assignments for VU Masters course in Evolutionary Computing
GNU General Public License v3.0
0 stars 0 forks source link

Refactoring of demo code #3

Closed gianlucatruda closed 4 years ago

gianlucatruda commented 4 years ago

I've refactored the code in optimization_specialist_demo.py and paired it with a simplified version of the demo controller. This makes things more python and readable.

I also modified the code so that logs and saved states are saved under experiments/<experiment_name>/... instead of just dumping it all in the root directory. This is defined by the EXPERIMENT_DIRECTORY static variable.

After much frustration, I abandoned the idea of putting our code in the src/ directory. It makes the imports from ../evoman a pain (because evoman assumes many locations within its submodules).

The current structure I have is:

.
├── LICENSE
├── Pipfile
├── README.md
├── evoman
| ...
├── experiments/
│   └── individual_demo/
├── requirements.txt
├── simple_controller.py
├── specialist_demo.py
└── tests
    └── test_dummy.py