Viewing Data
Example:
import pandas as pd
import json
import matplotlib.pyplot as plt
# Import the directives from prov4ml
import prov4ml.utils.prov_getters as pg
data = json.load(open(file_path))
# Get only metrics which have been collected during training phase
metric_keys = pg.get_metrics(data, keyword="TRAINING")
print(metric_keys)
# Creating mean values dictionary
metric = pg.get_metric(data, metric_keys[0])
plt.plot(metric["value"])
plt.show()