braun-steven / rtpt

Remaining Time to Process Title

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remaining-Time-To-Process (RTPT)

PyPI version

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

from 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}")

About

Remaining Time to Process Title

License:MIT License


Languages

Language:Python 100.0%