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

Preparation for release of skorch v0.12.0 #902

Merged
merged 6 commits into from
Oct 7, 2022
Merged

Conversation

BenjaminBossan
Copy link
Collaborator

Changes:

Bump version

Update CHANGES.md

Remove warning about signature change in on_batch methods

We had a change in the signature of on_batch_begin and on_batch_end.
Therefore, we tried to detect if users had overridden these methods and
issued a (hopefully) helpful warning.

This change is now established long enough that we can remove the
warning and associated tests.

Release text

@ottonemo and I are working on it, will paste it once it's ready.

We had a change in the signature of on_batch_begin and on_batch_end.
Therefore, we tried to detect if users had overridden these methods and
issued a (hopefully) helpful warning.

This change is now established long enough that we can remove the
warning and associated tests.
@BenjaminBossan
Copy link
Collaborator Author

proposed release text:

We're pleased to announce a new skorch release, bringing new features that might interest you.

The main changes relate to better integration with the Hugging Face ecosystem:

But this is not all. We have added the possibility to load the best model parameters at the end of training when using the EarlyStopping callback. We also added the possibility to remove unneeded attributes from the net after training when it is intended to be only used for prediction by calling the trim_for_prediction method. Moreover, we now show how to use skorch with PyTorch Geometric in this notebook.

As always, this release was made possible by outside contributors. Many thanks to:

Find below the list of all changes:

Added

  • Added load_best attribute to EarlyStopping callback to automatically load module weights of the best result at the end of training
  • Added a method, trim_for_prediction, on the net classes, which trims the net from everything not required for using it for prediction; call this after fitting to reduce the size of the net
  • Added experimental support for huggingface accelerate; use the provided mixin class to add advanced training capabilities provided by the accelerate library to skorch
  • Add integration for Huggingface tokenizers; use skorch.hf.HuggingfaceTokenizer to train a Huggingface tokenizer on your custom data; use skorch.hf.HuggingfacePretrainedTokenizer to load a pre-trained Huggingface tokenizer
  • Added support for creating model checkpoints on Hugging Face Hub using HfHubStorage
  • Added a notebook that shows how to use skorch with PyTorch Geometric (torch geometric support + example notebook #863)

Changed

  • The minimum required scikit-learn version has been bumped to 0.22.0
  • Initialize data loaders for training and validation dataset once per fit call instead of once per epoch (migration guide)
  • It is now possible to call np.asarray with SliceDatasets (Bugfix: sklearn 1.1 and SliceDataset #858)

Fixed

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

As for the release notes, there is no migration guide in the FAQ for going from 0.11 to 0.12. Specifically the following does not link to a section: https://skorch.readthedocs.io/en/stable/user/FAQ.html#migration-from-0-11-to-0-12

@BenjaminBossan
Copy link
Collaborator Author

As for the release notes, there is no migration guide in the FAQ for going from 0.11 to 0.12. Specifically the following does not link to a section: https://skorch.readthedocs.io/en/stable/user/FAQ.html#migration-from-0-11-to-0-12

Yes, but as soon as we release, the stable docs should be updated and the link should work.

@BenjaminBossan BenjaminBossan merged commit 1596c51 into master Oct 7, 2022
@BenjaminBossan BenjaminBossan deleted the release-0.12.0 branch October 7, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants