Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete duplicated code #183

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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