-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
Description
qlib/qlib/contrib/model/pytorch_tcts.py
Lines 146 to 148 in 4dc6693
| 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.