Equim-chan / Mortal

🚀🀄️ A fast and strong AI for riichi mahjong, powered by Rust and deep reinforcement learning.
https://mortal.ekyu.moe
GNU Affero General Public License v3.0
929 stars 118 forks source link

Create reset_bestperf.py #42

Closed hyskylord closed 1 year ago

hyskylord commented 1 year ago

Reset the best performance record. One might need this when baseline is changed.

Equim-chan commented 1 year ago

I think it's simpler to manually reset it even just within the Python REPL.

import torch
from config import config
s = torch.load(config['control']['state_file'])
s['best_perf'] = { 'avg_rank': 4., 'avg_pt': -135. }
torch.save(s, config['control']['state_file'])