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

Bug in TCTS model #943

Closed
Tribleave opened this issue Mar 2, 2022 · 2 comments
Closed

Bug in TCTS model #943

Tribleave opened this issue Mar 2, 2022 · 2 comments
Labels

Comments

@Tribleave
Copy link

init_fore_model = copy.deepcopy(self.fore_model)
for p in init_fore_model.parameters():
p.init_fore_model = False

Why set p.init_fore_model = False in line 148, this field makes no sense and not used in other place.

I think it is a typo and should be p.requires_grad = False as the init_fore_model is not updated when training fore_model.

Since it is a typo but the result of TCTS should be unchanged because it only update the parameters in fore_optimizer.

@you-n-g
Copy link
Collaborator

you-n-g commented Mar 4, 2022

Thanks for pointing out the bug!

It is OK to remove the two lines.

Would you mind sending a PR to fix this issue and become one of the contributors of Qlib
;)

TuozhenLiu added a commit to TuozhenLiu/qlib that referenced this issue Apr 12, 2022
p.init_fore_model = False -> p.requires_grad = False
you-n-g pushed a commit that referenced this issue Apr 14, 2022
p.init_fore_model = False -> p.requires_grad = False
@github-actions
Copy link

github-actions bot commented Jun 2, 2022

This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Jun 2, 2022
@github-actions github-actions bot closed this as completed Jun 7, 2022
qianyun210603 pushed a commit to qianyun210603/qlib that referenced this issue Mar 23, 2023
p.init_fore_model = False -> p.requires_grad = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants