Skip to content

Commit

Permalink
delete duplicated code (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongtae723 authored Nov 23, 2022
1 parent c5c8b6b commit b66760c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/setfit/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ def train(
num_epochs = num_epochs or self.num_epochs
batch_size = batch_size or self.batch_size
learning_rate = learning_rate or self.learning_rate
batch_size = batch_size or self.batch_size
is_differentiable_head = isinstance(self.model.model_head, torch.nn.Module) # If False, assume using sklearn

if not is_differentiable_head or self._freeze:
Expand Down
1 change: 0 additions & 1 deletion src/setfit/trainer_distillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def train(
num_epochs = num_epochs or self.num_epochs
batch_size = batch_size or self.batch_size
learning_rate = learning_rate or self.learning_rate
batch_size = batch_size or self.batch_size
is_differentiable_head = isinstance(
self.student_model.model_head, torch.nn.Module
) # If False, assume using sklearn
Expand Down

0 comments on commit b66760c

Please sign in to comment.