Skip to content

Conversation

@tomaarsen
Copy link
Member

@tomaarsen tomaarsen commented Nov 21, 2023

Hello!

See also #265 for more details

Pull Request overview

  • Tom Aarsen

tomaarsen and others added 30 commits January 11, 2023 14:59
Note: This commit involves three deprecations: the SetFitTrainer class (and DistilledSetFitTrainer), additional arguments to Trainer.train and the keep_body_frozen argument to Trainer.unfreeze. The first and last of these are 'graceful', i.e. old code will still work, but the Trainer.train changes are breaking in some situations. For example, e.g.
um_epochs can no longer be passed to Trainer.train. The new 'deprecated' test files are identical to the old test files. The goal here is to test whether old behaviour is still possible. For the most part it is, with exception of using Trainer.train with extra arguments. As a result, I skipped two tests in test_deprecated_trainer.py. Also note that docstrings have yet to be updated!
…rate

The reasoning is that with body_learning_rate, the tuple is for (training embedding phase, training classifier phase), which matches the tuples that you should give to num_epochs and batch_size.
Also add DeprecationWarning for DistillationSetFitTrainer
Also remove unused SetFitBaseModel and SKLearnWrapper
@tomaarsen tomaarsen linked an issue Dec 5, 2023 that may be closed by this pull request
@tomaarsen tomaarsen linked an issue Dec 5, 2023 that may be closed by this pull request
@tomaarsen tomaarsen linked an issue Dec 5, 2023 that may be closed by this pull request
@tomaarsen tomaarsen marked this pull request as ready for review December 6, 2023 13:16
@tomaarsen tomaarsen merged commit 0ff89a4 into main Dec 6, 2023
@tomaarsen tomaarsen deleted the v1.0.0-pre branch December 6, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment