@@ -51,10 +51,10 @@ async def run_calculate_drifting_metrics_pipeline(
5151
5252 # We need to drop the target column from the data to calculate drifting metrics
5353 processed_inference_dropped_target_df = inference_processed_df .drop (
54- [model .prediction ], axis = 1
54+ [model .target_column ], axis = 1
5555 )
5656 processed_training_dropped_target_df = training_processed_df .drop (
57- [model .prediction ], axis = 1
57+ [model .target_column ], axis = 1
5858 )
5959
6060 data_drift_report = run_data_drift_pipeline (
@@ -63,7 +63,7 @@ async def run_calculate_drifting_metrics_pipeline(
6363 concept_drift_report = run_concept_drift_pipeline (
6464 training_processed_df ,
6565 inference_processed_df ,
66- model .prediction ,
66+ model .target_column ,
6767 )
6868
6969 new_drifting_metric = entities .DriftingMetric (
@@ -115,7 +115,7 @@ async def run_calculate_performance_metrics_pipeline(
115115 if model .type == ModelType .binary :
116116 binary_classification_metrics_report = (
117117 create_binary_classification_evaluation_metrics_pipeline (
118- cleaned_actuals_df , inference_processed_df [model .prediction ], labels
118+ cleaned_actuals_df , inference_processed_df [model .target_column ], labels
119119 )
120120 )
121121
@@ -130,7 +130,7 @@ async def run_calculate_performance_metrics_pipeline(
130130 elif model .type == ModelType .multi_class :
131131 multiclass_classification_metrics_report = (
132132 create_multiple_classification_evaluation_metrics_pipeline (
133- cleaned_actuals_df , inference_processed_df [model .prediction ], labels
133+ cleaned_actuals_df , inference_processed_df [model .target_column ], labels
134134 )
135135 )
136136
@@ -144,7 +144,7 @@ async def run_calculate_performance_metrics_pipeline(
144144
145145 elif model .type == ModelType .regression :
146146 regression_metrics_report = create_regression_evaluation_metrics_pipeline (
147- cleaned_actuals_df , inference_processed_df [model .prediction ]
147+ cleaned_actuals_df , inference_processed_df [model .target_column ]
148148 )
149149
150150 new_performance_metric = entities .RegressionMetrics (
0 commit comments