本文禁止轉載,違者必究!
用強化學習玩合成大西瓜
代碼地址:https://github.com/Sharpiless/play-daxigua-using-Reinforcement-Learning
用強化學習DQN演算法,訓練AI模型來玩合成大西瓜游戲,提供Keras版本和PARL(paddle)版本,
B站:https://space.bilibili.com/470550823
CSDN:https://blog.csdn.net/weixin_44936889
AI Studio:https://aistudio.baidu.com/aistudio/personalcenter/thirdview/67156
Github:https://github.com/Sharpiless
1. 打開游戲:
這里使用pygame重寫了大西瓜游戲,并封裝為適合RL環境的代碼,
運行:
python Main.py
即可開始游戲:

2. 訓練RL模型:
RL演算法采用DQN演算法,其中Keras版本使用了簡單的卷積神經網路來計算Q值,PRAL版本使用ResNet,
運行:
python train_keras.py
或者
python train_paddle.py
開始訓練:

關注我的公眾號:
感興趣的同學關注我的公眾號——可達鴨的深度學習教程:

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/259318.html
標籤:其他
