Delu

Latest version: v0.0.26

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

Scan your dependencies

Page 3 of 3

0.0.5

New features
- added `zero.nn.Lambda`

API Changes
- `zero.Stream`: the argument `progress_bar_options` was renamed to `progress_bar_config`

0.0.4

This is a minor release mostly targeted at improving the documentation and the website.

New features
- `zero.improve_reproducibility` is recommended to be called at the beginning of your programs: the function sets random seeds and sets some options in `torch.backends.cudnn` to values that facilitate reproducibility
- `zero.random.seed` for setting random seeds in all relevant libraries (`random`, `numpy`, `torch`)
- many improvements in documentation
- website: new SVG logo, the navigation icon is added, the favicon is added
- contributing instructions are updated

API Changes
- `zero.random.init` is removed

0.0.3

Zero is alive! The first experience with the library was positive and now it is the time to use this experience to improve the library. This release brings nice additions (new functions, classes and structure to the library), improves things that proved to be useful and removes unnecessary modules and tools.

New features
- `zero.Stream`
- method `epochs` for ergonomic train loops with a progress bar
- methods `state_dict` and `load_state_dict` for saving and loading stream's state (epoch, iteration, etc.)
- `time.Timer`
- can be used as a context-manager to measure some code block execution time
- can be pickled
- pretty formatting when used inside `print` or f-strings
- method `format` for advanced formatting
- `random`
- functions `get_state` and `set_state` for better reproducibility when resuming training
- `zero.data.FnDataset` for fast datasets creation without the need to inherit from `torch.utils.data.Dataset`
- website (documentation)
- improve design, structure and layout
- now it is possible to select the version

API Changes
- new modules structure, see the website
- `zero.Stream.increment_epoch`: does not accept arguments anymore
- `zero.ProgressTracker`: support `patience=None` for only tracking the best score
- `zero.Timer.run`: does not return `self` anymore
- `zero.random.set_randomness`
- renamed to `zero.random.init`
- the argument `callback` was removed
- the generated (or passed) seed is returned
- The following modules were removed:
- `all`
- `io`
- `types`
- `module`
- `time`
- `training`
- The following functions and classes were removed:
- `hardware.to_device`
- `stream.ManualStream`
- `module.(call, ecall)`
- `time.format_seconds`
- `training.learn`

Dependencies
- python >= 3.7
- torch >= 1.6

0.0.2

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.