A logger to log the model training, etc.
Project description
Model Logger
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 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.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
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
model_logger_dp-1.0.2.tar.gz
(6.8 kB
view details)
File details
Details for the file model_logger_dp-1.0.2.tar.gz.
File metadata
- Download URL: model_logger_dp-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40e7bff88306935baf35f974ceec4e6a51221d5ef205ff01c266d4956cf529a0
|
|
| MD5 |
8c7861b063ae08f9467e3df89be2f6e7
|
|
| BLAKE2b-256 |
dbc9026f50a6d2917e0dce49e3e99be6e8eb0b4897180880b085a3a350b747fc
|