-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(pu/zt): add 2048 env and Stochastic MuZero #64
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PaParaZz1
requested changes
Aug 9, 2023
… to entry directory
…v-stochastic-mz-true-chance
… stochastic muzero game buffer
puyuan1996
commented
Sep 5, 2023
PaParaZz1
requested changes
Sep 7, 2023
…model, rename xxx_eval_config.py to xxx_eval.py
PaParaZz1
approved these changes
Sep 12, 2023
…k method and add its unittest
… step_i to step_k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The render video to illustrate the performance of Random action, Bot action, MuZero, and Stochastic MuZero agents in the 2048 environment.
Random action (~1000):
![game_2048_random](https://private-user-images.githubusercontent.com/48008469/267212981-71293c40-54e2-4db7-8921-3c8b43760aac.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2MDM1NTYsIm5iZiI6MTcyNTYwMzI1NiwicGF0aCI6Ii80ODAwODQ2OS8yNjcyMTI5ODEtNzEyOTNjNDAtNTRlMi00ZGI3LTg5MjEtM2M4YjQzNzYwYWFjLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA2MTQxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkOTkxMzk0ZDAyM2MwNWIxZmI0ODU2MzdjNjQ4NWUwMGM3ZjdmYjI3MDY4MjFhMjIwMmZkMjBhYWZjOTZjNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7LUBD2iFs2wHYFLyJsCqE1VJDz9-xe3Mi-SY44Q3RGw)
Bot action (~30000-70000):
![game_2048_bot_small](https://private-user-images.githubusercontent.com/48008469/267215488-60199351-7803-4c5e-9960-02a2a9288e76.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2MDM1NTcsIm5iZiI6MTcyNTYwMzI1NywicGF0aCI6Ii80ODAwODQ2OS8yNjcyMTU0ODgtNjAxOTkzNTEtNzgwMy00YzVlLTk5NjAtMDJhMmE5Mjg4ZTc2LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA2MTQxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMzODAzODNmN2M1NmJkYTFmYTA0MDY1ZjE1OTgzMzAwMWQ3MGQxOTY4MmQzNGYzNTJlOTJjMjc5NTZmZjMzMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pgfDSKYkfJ9-Yz2JkzIUGTmHzko397sSt1N65qlnrBM)
MuZero sim=100 (~27956):
![game_2048_muzero_ns100_s0](https://private-user-images.githubusercontent.com/48008469/267214443-6ba6eec4-7034-4ac4-a1b7-3024b71a5303.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2MDM1NTcsIm5iZiI6MTcyNTYwMzI1NywicGF0aCI6Ii80ODAwODQ2OS8yNjcyMTQ0NDMtNmJhNmVlYzQtNzAzNC00YWM0LWExYjctMzAyNGI3MWE1MzAzLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA2MTQxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIyYjEwNTI5Y2Y5YjI0MjU4YzlhNGM5MjhlOGM1YmFhNjBjNTY1M2M5NjQ0MjQwY2MxNTU2N2ExNWUwOWJmYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KVk9ijXJs4_A_m1YHfuRuM_hsoB9sCS8HybKbFToxUI)
Stochastic MuZero sim=100 (~37356):
![game_2048_stochastic_muzero_ns100_s0_small](https://private-user-images.githubusercontent.com/48008469/267216907-4bbe8e57-d268-4b79-8dab-4b2312b11c0e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2MDM1NTcsIm5iZiI6MTcyNTYwMzI1NywicGF0aCI6Ii80ODAwODQ2OS8yNjcyMTY5MDctNGJiZThlNTctZDI2OC00Yjc5LThkYWItNGIyMzEyYjExYzBlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDA2MTQxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA4NGQ3ODA4ZDU2ZTQ2ZGIzODlmYWZlYzVjNWZmYWY0ODYwYTVhNjM5ZDczZDZhNjA4YTUxMTg3ZmJkMWM5NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.T-t-jiuw9kFFmCUWuznFkDFx8rSzAifC3pmv0qUjRaA)
Where the term
sim
represents the number of simulations used for evaluation in MCTS, and the score within brackets corresponds to the score procured by each respective agent.#41