Skip to content

PyTorchによって実装されたニューラルネットワークによるリバーシAIの自己教師あり学習と、Wansuko-cmd/reversi-server のためのクライアント。

License

Notifications You must be signed in to change notification settings

AAAR-Salmon/reversi-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reversi-ai

PyTorch によって実装された 畳み込みニューラルネットワークによるリバーシAIの自己教師あり学習と、 Wansuko-cmd/reversi-server のためのクライアント。

利用方法

Poetry によって依存関係を管理している。

poetry install

で依存パッケージをインストールし、venv を構成する。

学習

poetry run ./reversi_ai/train.py

で学習を開始し、モデルの state_dict をカレントディレクトリに保存する。

クライアントの実行

サーバが http://192.168.x.y:8000 で実行されており、 保存した state_dict がカレントディレクトリの reversi_ffn_model-xxxxxxxxxx.yyyyyy.pickle にあるなら、

poetry run ./reversi_ai/main.py reversi_ffn_model-xxxxxxxxxx.yyyyyy.pickle http://192.168.x.y:8000

で実行できる。

何らかの原因でクライアントが停止した場合は、 -u/--user-id オプションにより前回のユーザIDを使うことができる。

前回のユーザIDが 123e4567-e89b-12d3-a456-426614174000 ならば、

poetry run ./reversi_ai/main.py --user-id 123e4567-e89b-12d3-a456-426614174000 reversi_ffn_model-xxxxxxxxxx.yyyyyy.pickle http://192.168.x.y:8000

ライセンス

Apache License Version 2.0 に基づく。

動作環境

About

PyTorchによって実装されたニューラルネットワークによるリバーシAIの自己教師あり学習と、Wansuko-cmd/reversi-server のためのクライアント。

Topics

Resources

License

Stars

Watchers

Forks

Languages