junxiaosong / AlphaZero_Gomoku

An implementation of the AlphaZero algorithm for Gomoku (also called Gobang or Five in a Row)
MIT License
3.29k stars 964 forks source link

hello, i am retraining the model with your train.py but instead of a file .model i get 3 files .model.meta , .model.index , .model.data-00000-of-00001, iam new with retraining data so have no idea what to do #74

Open TrangPhuongMai opened 5 years ago

tristantian commented 5 years ago

One model consists of three files. You can use "xxx.model" ,when you use your own model

TrangPhuongMai commented 5 years ago

how do you use these three files, can you make an example

tristantian commented 5 years ago

For example, when you finish training, you can change the code in human_play.py as fllowing, model_file = 'best_policy.model'
If you want continue trianing your model, you can change the code in train.py as fllowing, def init(self, init_model=‘best_policy.model‘): (I suppose that the retrained model's name is best_policy.model. There are three files named best_policy.model.meta,best_policy.model and index,best_policy.model.data-00000-of-00001 )