A simple tool for automatic parameter tuning.
Project description
DI-toolkit
A simple toolkit package for opendilab, including the following utilities:
ditk.logging
, a easy-to-use logger system
Installation
You can simply install it with pip
command line from the official PyPI site.
pip install DI-toolkit
Or install from latest source code as follows:
git clone https://gitlab.bj.sensetime.com/open-XLab/cell/di-toolkit.git
cd di-toolkit
pip install . --user
Quick Start
Example of ditk.logging
Here is an example of logging.
from ditk import logging
if __name__ == '__main__':
logging.try_init_root(logging.INFO)
logging.info('This is info')
logging.warning('This is warning with integer 233')
logging.error('This is a error with string \'233\'.')
try:
_ = 1 / 0
except ZeroDivisionError as err:
logging.exception(err)
ditk.logging
has almost the same interface as native logging
module. You can directly replace import logging
in the code with from ditk import logging
.
Contributing
We appreciate all contributions to improve DI-toolkit
, both logic and system designs. Please refer to CONTRIBUTING.md for more guides.
License
DI-toolkit
released under the Apache 2.0 license.
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
DI-toolkit-0.1.0.tar.gz
(11.8 kB
view hashes)
Built Distribution
DI_toolkit-0.1.0-py3-none-any.whl
(13.4 kB
view hashes)
Close
Hashes for DI_toolkit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccdbe42d31d04b43e37be94a3cb25eea01b547ed6ea7adf932ba5857900c9a99 |
|
MD5 | 700ac40b6dabb377a9487aa1a4e6f07a |
|
BLAKE2b-256 | 66eef1cfa5ee9a19ea477057b012829bedd93bbd5fb99136add7ec61a1cf4444 |