File tree 1 file changed +3
-4
lines changed
pkg/workloads/cortex/lib/type
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,10 @@ def latency_metric(self, start_time):
106
106
"Value" : (time .time () - start_time ) * 1000 , # milliseconds
107
107
}
108
108
109
- def prediction_metrics (self , prediction ):
110
- predicted_value = self .tracker .extract_predicted_value (prediction )
109
+ def prediction_metrics (self , prediction_value ):
111
110
if self .tracker .model_type == "classification" :
112
111
dimensions_with_class = self .metric_dimensions () + [
113
- {"Name" : "Class" , "Value" : str (predicted_value )}
112
+ {"Name" : "Class" , "Value" : str (prediction_value )}
114
113
]
115
114
return {
116
115
"MetricName" : "Prediction" ,
@@ -122,5 +121,5 @@ def prediction_metrics(self, prediction):
122
121
return {
123
122
"MetricName" : "Prediction" ,
124
123
"Dimensions" : self .metric_dimensions (),
125
- "Value" : float (predicted_value ),
124
+ "Value" : float (prediction_value ),
126
125
}
You can’t perform that action at this time.
0 commit comments