Closed nisheetpatel closed 1 year ago
I also added a trainer class to make main a little bit cleaner and verified that it runs from root with python src/main_new.py
as well as from src with python main_new.py
. The one problem currently is that is it doesn't save main.py anymore. @albertochiappa could you perhaps tell me which callback that was a part of?
The main_new.py seems to for me after removing the incompatibilities with python 3.7! I have removed everything related to ray and rllib, besides some further refactoring. Could you take a look that everything works as intended?
The main_new.py seems to for me after removing the incompatibilities with python 3.7! I have removed everything related to ray and rllib, besides some further refactoring. Could you take a look that everything works as intended?
Thanks for cleaning up. Looks great; just a couple of minor issues that I now fixed:
import os
in src/metrics/custom_callbacks.py
main_new.py
; now importing from metrics.custom_callbacks
instead of metrics.sb_callbacks
main.py
and renamed main_new.py
as main_baoding.py
.
Description
Includes major structural changes. Please review them before accepting.
Changes
Structural
src
foldersrc
from all importssrc/evaluate/main_eval.py
,src/evaluate/main_eval_die.py
, etc.src/main.py
,src/main_die.py
src/definitions.py
(and updated ROOT_DIR definition to point to actual root, not src)__init.py__
to all folders in src so they can be recognized as packages and imported properly by other modulesFunctional
src/models/classifier.py
with classifier base class and training functionssrc/trainers/train_classifier.py
andsrc/trainers/train_mixture_model.py
MixtureModelEnv
class toenvs/baoding.py
src/envs/__init__.py
src/envs/environment_factory.py
Trainer
protocol andBaodingTrainer
class insrc/trainers/trainer.py
to make main a little bit cleaner.Standardization
.vscode/settings.json
and.pylintrc
Since we all use vscode, it's just a lot less annoying if everyone uses the same linter and formatting settings with auto-format. Otherwise whenever one of us pushes something, the others have issues. Happy to change any of the settings individually if you prefer some other autoformatter or whatever.