Skip to main content

Log2DB

PyPI Latest Release Package Format Python Version Package Status GitHub Build Version

DeepLearning Log Send to DB Module

Introdution

Log2DB is a tool that uploads, manages, and visualizes simple deep learning logs to your own DB.

How To Install

Download PyPI:

pip install log2db

How To Use

  • Basic preparation
import log2db as lgdb

#Set the DB Server 
db = lgdb.SetMongoDB(db_url = 'db_url',
                    db_document_name='doc',
                    db_collection_name='coll',
                    port=12345)
coll = db.Connect_DB()
sendlog = lgdb.SendLog(coll)
  • example
sendlog.on_train_start(
    model_name = 'pytorch_test',
    experiment_count = 3,
    datas_count = len(x_data),
    epoch = 100,
    batch_size = 8,
    learning_rate = 0.01,
    criterion = 'CrossEntropyLoss',
    optimizer = 'SGD(momentum=0.5)',
    model_shape = model,
    LR_scheduler = 'None',
    etc = 'None'
)

...

sendlog.on_epoch_end(epoch=epoch, loss=loss, val_loss=val_loss, acc=acc, val_acc=val_acc)

...

sendmoel.on_train_end(save_graph_url=True)

Dependency

License

MIT

Metadata

Release files for log2db 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for log2db 0.0.3
File Size Uploaded
log2db-0.0.3.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for log2db 0.0.3
File Interpreter ABI Platform
log2db-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / log2db-0.0.3.tar.gz

Download URL log2db-0.0.3.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1fcae3a293a7b470e6fdcf734e8b22d51ce136fc54b23564a41a0fff3e70dfb4
BLAKE2b-256 checksum
How to use checksums
5dd48f5b19fd385bcedb22bd89dde4db5cb3645fe20cf09115cbb17f4f161fee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / log2db-0.0.3-py3-none-any.whl

Download URL log2db-0.0.3-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf73e3d9ef3e987feb03f50b2cffa888783b38877d8b55fe6f2a91130859ff2a
BLAKE2b-256 checksum
How to use checksums
ff0556fdf47f0fda1934d1f8ac95f58c833ff086519af5abe80447c010b8c19a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.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