Common torch tools and extension
Project description
pytorch-common
A Pypi module with pytorch common tools like:
- Callbacks (keras style)
- Validation: Model validation.
- ReduceLROnPlateau:
- Reduce learning rate when a metric has stopped improving.
- Models often benefit from reducing the learning rate by a factor of 2-10 once learning stagnates. This scheduler reads a metrics quantity and if no improvement is seen for a 'patience' number of epochs, the learning rate is reduced.
- EarlyStop:
- Stop training when model has stopped improving a specified metric.
- SaveBestModel:
- Save model weights to file while model validation metric improve.
- Logger:
- Logs context properties.
- In general is used to log performance metrics every n epochs.
- MetricsPlotter:
- Plot evaluation metrics.
- This graph is updated every n epochs during training process.
- Callback and OutputCallback:
- Base classes.
- CallbackManager:
- Simplify callbacks support to fit custom models.
- StratifiedKFoldCV:
- Support parallel fold processing on CPU.
- Mixins
- FiMixin
- CommonMixin
- Utils
- device management
- stopwatch
- data split
- os
- model
- LoggerBuilder
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytorch-common-0.0.14.tar.gz
(18.3 kB
view hashes)
Built Distribution
Close
Hashes for pytorch_common-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c17988a300f4e01cc9343f570f78f6cef6bca76a3af5ccd8fd97ed0f645a4b3 |
|
MD5 | eacc1d120364b4020b0cde4e18999e83 |
|
BLAKE2b-256 | f2e0b07fbdf53c97dc1f7fb26032fce850c54ed1015acba5a119207dec445b26 |