train_time
train_time is a Python package that provides a callback for machine learning training processes, particularly useful when using TensorFlow/Keras. It estimates and displays the remaining training time for each epoch during the model training process. The package allows users to view the remaining time in their preferred format: seconds, minutes, hours, or days.
Features
- Easy integration with TensorFlow/Keras training loops.
- Customizable time format for estimated training time display.
- Lightweight and easy to use.
Installation
Note: this doesnt work with python 3.12 for now
You can install train_time directly from PyPI:
pip install train_time
Usage
To use train_time in your machine learning project, simply import the package and add it to your model's callbacks. Here is a basic example:
import tensorflow as tf
from train_time import train_time
# Define your model
model = tf.keras.models.Sequential([
# ... your model layers ...
])
# Compile your model
model.compile(optimizer='adam', loss='loss_function')
# Instantiate the callback
time_callback = train_time(time_format='minutes')
# Train the model with the callback
model.fit(x_train, y_train, epochs=10, callbacks=[time_callback])
In this example, time_format can be 'seconds', 'minutes', 'hours', or 'days', depending on your preference.
Contributing
Contributions to train_time are welcome!
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Thanks to everyone who has contributed to the development of this package.
- Special thanks to the TensorFlow and Keras communities for their invaluable resources.
Metadata
Release files for train-time 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| train_time-0.1.5.tar.gz | 3.2 kB | Without provenance | Details for train_time-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| train_time-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for train_time-0.1.5-py3-none-any.whl |
Total release size: 6.7 kB
Release files / train_time-0.1.5.tar.gz
| Download URL | train_time-0.1.5.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a57ee7315bfcd09edd583a09687fc93e066a661a7fa4ac5b2d4e91915d89f9c
|
|
BLAKE2b-256 checksum How to use checksums |
00ff485e784171662fa15e87d1516304c8a5ca4d5d841c516c72f098a29e6d06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / train_time-0.1.5-py3-none-any.whl
| Download URL | train_time-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b71638ef1cad3ff0a402f41b4448ac8d859f9fe4f0bbd73535dc4852b1bd4348
|
|
BLAKE2b-256 checksum How to use checksums |
6c3868fb31c33ede1a1a84da6fb367d2b8d54ba9880581e9a779d14b0cbab831
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for train-time 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.