Torchbearer

Latest version: v0.5.5

Safety actively analyzes 618451 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

0.5.4

Added
- Allow imaging callback's `to_file` to use state information in the file name
Changed
Deprecated
Removed
Fixed
- Fixed warnings about the `epoch` argument in schedulers in newer versions of pytorch
- Fixed a bug in access metrics function and callbacks that use it
- Fixed bug where schedulers were called before optimisers with newer versions of pytorch
- Fixed a bug where the csv logger closed the file too early
- Fixed compat with pytorch > 1.1.0 versioning
- Fixed typos in doc strings
- Fixes for tests where pytorch >2 Tensors were causing issues with mocks
- Fix bug in gradient clipping where the parameter generator was consumed on the first pass

0.5.3

Added
- Method in bases to access metrics
Changed
Deprecated
Removed
Fixed
- Metric access bugs in various callbacks

0.5.2

Added
- Added option to use mixup loss with cutmix
- Support for PyTorch 1.4.0
Changed
- Changed PyCM save methods to use `*args` and `**kwargs`
Deprecated
Removed
Fixed
- Fixed a bug where the PyCM callback would fail when saving

0.5.1

Added
- Added BCPlus callback for between-class learning
- Added support for PyTorch 1.3
- Added a show flag to the `ImagingCallback.to_pyplot` method, set to false to stop it from calling `plt.show`
- Added manifold mixup
Changed
- Changed the default behaviour of `ImagingCallback.to_pyplot` to turn off the axis
Deprecated
Removed
Fixed
- Fixed a bug when resuming an old state dict with tqdm enabled
- Fixed a bug in imaging where passing a title to `to_pyplot` was not possible

0.5.0

Added
- Added PyTorch CyclicLR scheduler
Changed
- Torchbearer now supports Modules with multiple inputs and multiple outputs
Deprecated
Removed
- Cyclic LR callback in favour of torch cyclic lr scheduler
- Removed support for PyTorch 0.4.x
Fixed
- Fixed bug where aggregate predictions couldn't handle empty list
- Fixed a bug where Runtime Errors on forward weren't handled properly
- Fixed a bug where exceptions on forward wouldn't print the traceback properly
- Fixed a documentation mistake whereby ReduceLROnPlateau was said to increase learning rate

0.4.0

Added
- Added ``with_loader`` trial method that allows running of custom batch loaders
- Added a Mock Model which is set when None is passed as the model to a Trial. Mock Model always returns None.
- Added `__call__(state)` to `StateKey` so that they can now be used as losses
- Added a callback to do cutout regularisation
- Added a `with_data` trial method that allows passing of train, val and test data in one call
- Added the missing on_init callback decorator
- Added a `step_on_batch` flag to the early stopping callback
- Added multi image support to `imaging`
- Added a callback to unpack state into torchbearer.X at sample time for specified keys and update state after the forward pass based on model outputs. This is useful for using DataParallel which pass the main state dict directly.
- Added callback for generating confusion matrices with PyCM
- Added a mixup callback with associated loss
- Added Label Smoothing Regularisation (LSR) callback
- Added CutMix regularisation
- Added default metric from paper for when Mixup loss is used
Changed
- Changed history to now just be a list of records
- Categorical Accuracy metric now also accepts tensors of size (B, C) and gets the max over C for the taget class
Deprecated
Removed
- Removed the variational sub-package, this will now be packaged separately
- Removed `verbose` argument from the early stopping callback
Fixed
- Fixed a bug where list or dictionary metrics would cause the tensorboard callback to error
- Fixed a bug where running a trial without training steps would error
- Fixed a bug where the caching imaging callback didn't reset data so couldn't be run in multiple trials
- Fixed a bug in the `ClassAppearanceModel` callback
- Fixed a bug where the state given to predict was not a State object
- Fixed a bug with Cutout on gpu
- Fixed a bug where MakeGrid callback wasn't passing all arguments correctly
- Fixed a bug in `ImagingCallback` that would sometimes cause `make_grid` to throw an error
- Fixed a bug where the verbose argument would not work unless given as a keyword argument
- Fixed a bug where the data_key argument would sometimes not work as expected
- Fixed a bug where cutout required a seed
- Fixed a bug where cutmix wasn't sendign the beta distribution sample to the device

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.