dcyd model performance monitoring client
Project description
DCYD Model Performance Monitoring Client
Visit https://www.dcyd.io/ for more details.
Install
Requires Python 3 before start
Using pip
pip3 install dcyd -U
Using pipenv
pipenv install dcyd
Configure
Generate the dcyd.json configuration file
dcyd-config $DCYD_PROJECT_ID $DCYD_PROJECT_ACCESS_TOKEN
Point the DCYD_CONFIG_FILE environment variable to the above file location
export DCYD_CONFIG_FILE=/path/to/project/dcyd.json
Usage
Simple monitoring
from dcyd.mpm import mpm
@mpm.monitor
def my_predict_function(features):
result = None
# run my model(s) logic
return result
Monitor with custom data
from dcyd.mpm import mpm
@mpm.monitor(my_model_version='1.0')
def my_predict_function(features):
result = None
# run my model(s) logic
return result
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
dcyd-0.3.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
dcyd-0.3.0-py3-none-any.whl
(7.8 kB
view hashes)