Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix additional dataloader creation #220

Merged

Conversation

HelpstoneX
Copy link
Contributor

In it's latest form, get_data_loader gets passed the full pgn_dataset_arrays_dict, but in the train_cnn notebook in the section where the additional data loaders are created it is still used in the old way of passing the contents of pgn_dataset_arrays_dict individually. This PR fixes this issue.

- adjusted initial Dockerfile
- minor changes to convert_pgn_to_planes.ipynb and pgn_to_planes_converter.py
… have been used

- added counter for games without positions for current phase
# Conflicts:
#	engine/src/rl/Dockerfile
- added analyse_game_phases.py to analyse game phase distribution and other information
- minor changes
… phase

- board->get_phase now expects the total amount of phases as an argument
- phaseCountMap is now immediately filled
- added sample weighting to losses pytorch training files
- load_pgn_dataset() now returns a dict
- added file for easily generating normalized cutechess-cli commands
- added file to generate plots based on cutechess results
…ss through the trainer agent

- you can now pass a phase to load_pgn_dataset to load a non default dataset
- added printing total positions in dataset when loading
- adjusted cutechess run file to support 960 matches
HelpstoneX and others added 25 commits December 9, 2023 19:07
- new and adjusted graphs in game_phase_detector.py (should be put into a separate file)
- new plots in create_cutechess_plots.py
- moved game phase analysis code from game_phase_detector.py to own file (analyse_game_phase_definition.py)
- minor changes in train_cnn.py
- adjusted .gitignore
… assumes phases by movecount)

- set default value for UCI_Chess960 back to false
- minor fixes
- added colorblind palette
…movecount" and corresponding searchsettings enum GamePhaseDefinition
# Conflicts:
#	DeepCrazyhouse/configs/train_config.py
#	DeepCrazyhouse/src/preprocessing/pgn_converter_util.py
#	DeepCrazyhouse/src/preprocessing/pgn_to_planes_converter.py
#	DeepCrazyhouse/src/training/train_cnn.ipynb
#	DeepCrazyhouse/src/training/trainer_agent_pytorch.py
#	engine/src/agents/agent.cpp
#	engine/src/agents/agent.h
#	engine/src/agents/mctsagent.cpp
#	engine/src/agents/mctsagent.h
#	engine/src/agents/rawnetagent.cpp
#	engine/src/agents/rawnetagent.h
#	engine/src/environments/chess_related/board.cpp
#	engine/src/environments/chess_related/boardstate.h
#	engine/src/nn/neuralnetapi.cpp
#	engine/src/nn/neuralnetapiuser.cpp
#	engine/src/nn/neuralnetapiuser.h
#	engine/src/searchthread.cpp
#	engine/src/searchthread.h
#	engine/src/uci/crazyara.cpp
@QueensGambit QueensGambit merged commit 524e048 into QueensGambit:master Sep 23, 2024
2 of 3 checks passed
@QueensGambit
Copy link
Owner

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants