|
@@ -25,7 +25,7 @@ class AMetric(MetricBase):
|
|
|
|
|
|
def calculate(self, *args, **kwargs) -> MetricFucResultEntity:
|
|
|
data = self._load_data(*args, **kwargs)
|
|
|
- return MetricFucResultEntity(table=data, value='1', image_path='cache/image/t1.png')
|
|
|
+ return MetricFucResultEntity(table=data, value='1', image_path='../cache/image/t1.png')
|
|
|
|
|
|
class BMetric(MetricBase):
|
|
|
|
|
@@ -49,6 +49,6 @@ if __name__ == "__main__":
|
|
|
# a.writr("cache/a.xlsx")
|
|
|
|
|
|
|
|
|
- monitor_metric = MonitorMetric("./cache/model_monitor_config1.json")
|
|
|
+ monitor_metric = MonitorMetric("../cache/model_monitor_config1.json")
|
|
|
monitor_metric.calculate_metric(data_loader=data_loader)
|
|
|
monitor_metric.generate_report()
|