Skip to main content

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)

Source distribution for train-time 0.1.5
File Size Uploaded
train_time-0.1.5.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for train-time 0.1.5
File Interpreter ABI Platform
train_time-0.1.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page