Log2DB
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 manually:
https://github.com/Oldentomato/Log2DB/releases
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
- Pandas https://github.com/pandas-dev/pandas
- Matplotlib https://github.com/matplotlib/matplotlib
- pymongo https://github.com/mongodb/mongo-python-driver
- scikit-learn https://github.com/scikit-learn/scikit-learn
License
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)
| File | Size | Uploaded | |
|---|---|---|---|
| log2db-0.0.3.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|