Skip to content

Commit

Permalink
fix(sGBM): missing functionality of param save_model
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyxu committed Aug 25, 2021
1 parent 02703c2 commit 01a9e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchensemble/soft_gradient_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def fit(
# Validation
if test_loader:
flag = self._evaluate_during_fit(test_loader, epoch)
if flag:
if save_model and flag:
io.save(self, save_dir, self.logger)

# Update the scheduler
Expand Down

0 comments on commit 01a9e4c

Please sign in to comment.