Skip to main content

Send Deep Learning Training,Test Log To DB

Project description

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

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

log2db-0.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

log2db-0.0.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file log2db-0.0.3.tar.gz.

File metadata

  • Download URL: log2db-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for log2db-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1fcae3a293a7b470e6fdcf734e8b22d51ce136fc54b23564a41a0fff3e70dfb4
MD5 1d24c5f4c815b5d5f4a9de815903962b
BLAKE2b-256 5dd48f5b19fd385bcedb22bd89dde4db5cb3645fe20cf09115cbb17f4f161fee

See more details on using hashes here.

File details

Details for the file log2db-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: log2db-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for log2db-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf73e3d9ef3e987feb03f50b2cffa888783b38877d8b55fe6f2a91130859ff2a
MD5 2cf53dca84fcc7a89307ab1f23a688f0
BLAKE2b-256 ff0556fdf47f0fda1934d1f8ac95f58c833ff086519af5abe80447c010b8c19a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page