# Template for creating your own graph
import os
from datmo.monitoring import Monitoring
# Set save location
save_directory = os.path.dirname(os.path.realpath(__file__))
# if running in a notebook you can uncomment the code below
# save_directory = os.path.dirname(os.path.realpath('__file__'))
# Set datmo client with API Key
datmo_client = Monitoring(api_key="6a3a3cd900eaf7b406a41d68f8ca7969")
# Set the schema for datmo filter
filter_schema = {"model_id": "{{ model.name }}",
"deployment_version_id": "{{ deployment_version_id }}",
"model_version_id": "{{ model_version_id }}"}
# Get inference data from datmo
rows = datmo_client.search_metadata(filter_schema)
# Transform inference data for the plots
# Perform analysis over the input features from the inference data
# Plot the graph and save a single image as "image.jpg" after analysis