Skip to main content

Model Logger for Pytorch

Project description

Model Logger

Python >= 3.8

A package that contains method to log the model training log.

The package is an uncompleted package in the version 1.x. Its functions will be gradually improved in subsequent versions.

How to use

To use the model logger, you need to install the package first. You can install it using pip:

pip install model_logger_dp

To start the model logger.

import os
import model_logger_dp

os.environ['LOG_PATH'] = './output/log'  # Set the directory for logs

# If you want to save the log with a specific file name, you should set the filename parameter.
# If you do not set the filename parameter, the log will be saved with a datatime name.
logger  = model_logger_dp.ModelLogger(filename='train.log')

# Use the print method to log the message.
print('Hellow World!')

To look the help and update log of the package, you can use the log_help and log_update method.

import model_logger_dp

model_logger_dp.log_help()
model_logger_dp.log_update()

Update

`1.0.3` - Add model summery method and update the setup method.
`1.0.2` - Add showing the caller method.
`1.0.1` - Add the logger decorator, improve the logger instance and implement help and update log method.
`1.0.0` - Initial release with basic logging functionality.

License

model_logger is MIT licensed. See the LICENSE for details.

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

model_logger_dp-1.0.3.post2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

model_logger_dp-1.0.3.post2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file model_logger_dp-1.0.3.post2.tar.gz.

File metadata

  • Download URL: model_logger_dp-1.0.3.post2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for model_logger_dp-1.0.3.post2.tar.gz
Algorithm Hash digest
SHA256 bd0179d28ab1feacb4aa0e62c5fa053b3c465c0aac81b8e9900121bce5cf403c
MD5 1e1e10bf0f8a3d1108d511fe5c11b81d
BLAKE2b-256 a019c30dce9f69ee77251bd2d07307af3727b9420402bf1b6e79cd149ccb755a

See more details on using hashes here.

File details

Details for the file model_logger_dp-1.0.3.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for model_logger_dp-1.0.3.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 2537606b39d90ef0ae3c1d6ba9bc3f63b2447d6e2f835ca1a4ec37403649ae8f
MD5 01c1573a8bc30a601eed2bd1131ec89f
BLAKE2b-256 b73898a496b62a2232034118df36317ec7b2bac2aba2a3163daf8a649fc20da9

See more details on using hashes here.

Supported by

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