Skip to content
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

怎么训练其它棋盘大小的模型 #139

Open
Startshark opened this issue May 21, 2024 · 2 comments
Open

怎么训练其它棋盘大小的模型 #139

Startshark opened this issue May 21, 2024 · 2 comments

Comments

@Startshark
Copy link

如题,可以请问一下各位大佬,如果要训练不同大小的正方形棋盘,我应该怎么修改哪些部分的代码?

@IcyFeather233
Copy link

train.py 里面改这个部分:

class TrainPipeline():
    def __init__(self, init_model=None):
        # params of the board and the game
        self.board_width = 6
        self.board_height = 6
        self.n_in_row = 4

@hzr12
Copy link

hzr12 commented Dec 13, 2024

但是使用numpy想要训练模型没有的大小会报错
TypeError: PolicyValueNetNumpy.init() missing 1 required positional argument: 'net_params'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants