Skip to content

Commit

Permalink
fix(regression): fix scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Optimox committed Dec 6, 2019
1 parent 91461fb commit 01e46b7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pytorch_tabnet/tab_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,6 @@ def update_fit_params(self, X_train, y_train, X_valid, y_valid, loss_fn,
self.weights = 0 # No weights for regression
self.updated_weights = 0

if self.scheduler_fn:
self.scheduler = self.scheduler_fn(self.optimizer, **self.scheduler_params)
else:
self.scheduler = None

self.max_epochs = max_epochs
self.patience = patience
self.batch_size = batch_size
Expand Down

0 comments on commit 01e46b7

Please sign in to comment.