Simple AI Logging
Project description
onelog
onelog is the simplest AI training logging library in the world. Just drop in a few log statements and immediately see your results in a single html file.
Installation
pip install onelog
Usage
Basic Scalar Logging 📊
import onelog
onelog = onelog.Logger()
for dummy_loss in range(20, 1, 0.1):
onelog.log_scalar(dummy_loss, "dummy_loss")
onelog.finish()
Advanced Logging with Hyperparameters and Images 🖼️
import onelog
from PIL import Image
onelog = onelog.Logger()
# Log hyperparameters ⚙️
onelog.log_hyperparameters({
"learning_rate": 0.001,
"batch_size": 32,
"epochs": 100
})
# Log scalar values 📈
for epoch in range(10):
loss = 1.0 / (epoch + 1)
accuracy = 0.8 + epoch * 0.02
onelog.log_scalar(loss, "training_loss")
onelog.log_scalar(accuracy, "accuracy")
# Log images 🖼️
sample_image = Image.new('RGB', (100, 100), color='red')
onelog.log_image(sample_image, "sample_output")
# Save as HTML report 📄
onelog.save_html("training_report.html")
Available Methods
log_scalar(value, name)📊 - Log numeric values (int/float)log_image(image, name)🖼️ - Log PIL Image objectslog_hyperparameters(params)⚙️ - Log training hyperparametersfinish(html_path=None)✅ - Finish logging and optionally save HTMLsave_html(target_path)💾 - Save current data as HTML report
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
onelog-0.1.0.tar.gz
(17.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onelog-0.1.0.tar.gz.
File metadata
- Download URL: onelog-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.1 CPython/3.13.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
514738a4b30de404dba35bc269d689c0d4a1e62531cd2fb74fb06087f3551eb4
|
|
| MD5 |
0dd5fe00cecdc684ef0a06139360dfc2
|
|
| BLAKE2b-256 |
60a42a1f27f9d4d7f6b15e522b6d58e111eccb681e8219917bae9a13946ec2ef
|
File details
Details for the file onelog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: onelog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.1 CPython/3.13.3 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
384dfaf61cfb27ec88b338a760d190ef51f82259733c8738056639742b826a64
|
|
| MD5 |
86ab3c4f3edba9de76e650f1edb0daef
|
|
| BLAKE2b-256 |
75ecc299ea1ef88ef3f6b32a641915604dc482a4d180085dd0398ccf0b1c9278
|