Remaining Time to Process Title
Project description
Remaining-Time-To-Process (RTPT)
RTPT class to rename your processes giving information on who is launching the process, and the remaining time for it.
Installation
Using pip
pip install rtpt
From source
git clone
python setup.py install
Example
.. code:: python
from rtpt.rtpt import RTPT
import random
import time
# Create RTPT object
rtpt = RTPT(name_initials='QD', experiment_name='TestingRTPT', max_iterations=10)
# Start the RTPT tracking
rtpt.start()
# Loop over all iterations
for epoch in range(10):
time.sleep(4)
# Perform a single experiment iteration
loss = random.random()
# Update the RTPT (subtitle is optional)
rtpt.step(subtitle=f"loss={loss:2.2f}")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtpt-0.0.3.tar.gz
(4.4 kB
view details)
Built Distribution
rtpt-0.0.3-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file rtpt-0.0.3.tar.gz
.
File metadata
- Download URL: rtpt-0.0.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75293d873dcf4e90b9ae9417db8db2141393ec08f3bd76ac39a5a627dfe31e2b |
|
MD5 | a317a768f3d8f85a93b46bce154e343c |
|
BLAKE2b-256 | 84b6e2828d33595bb22ab917290d5423da3a9ead14bfbcea395205bd0b08e58c |
File details
Details for the file rtpt-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: rtpt-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d058467126793e2cd72e417141d6972a727338bce8400db95f1c33a9ee88e530 |
|
MD5 | 94687916f8bd3e179c13052e75fd1cf8 |
|
BLAKE2b-256 | 0482239353372edf81344ce1e130a066ec20a40f971858f2156b21ad0178b33d |