Skip to content

Commit

Permalink
Set self.fitted = True instead of self._fitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
topskychen authored and you-n-g committed Jun 24, 2021
1 parent 8ebdb1e commit 2ab4a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlib/contrib/model/pytorch_nn.py
Expand Up @@ -297,7 +297,7 @@ def load(self, buffer, **kwargs):
_model_path = os.path.join(model_dir, _model_name)
# Load model
self.dnn_model.load_state_dict(torch.load(_model_path))
self._fitted = True
self.fitted = True


class AverageMeter:
Expand Down

0 comments on commit 2ab4a9a

Please sign in to comment.