@@ -379,7 +379,7 @@ def compute_and_plot_metric_over_metric_categories(self, class_name: str, metric
379379 cat_optimal_results = total_optimal_results .loc [total_optimal_results [metric2 ] <= cutoff ]
380380 optimal_results_per_cutoff ['<=' + str (cutoff )] = cat_optimal_results
381381 else :
382- cat_optimal_results = total_optimal_results .loc [metric2_cutoffs [c - 1 ] < total_optimal_results [metric2 ] <= cutoff ]
382+ cat_optimal_results = total_optimal_results .loc [( total_optimal_results [ metric2 ] > metric2_cutoffs [c - 1 ]) & ( total_optimal_results [metric2 ] <= cutoff ) ]
383383 optimal_results_per_cutoff [']' + str (metric2_cutoffs [c - 1 ]) + ',' + str (cutoff ) + ']' ] = cat_optimal_results
384384 cat_optimal_results = total_optimal_results .loc [total_optimal_results [metric2 ] > metric2_cutoffs [- 1 ]]
385385 optimal_results_per_cutoff ['>' + str (metric2_cutoffs [- 1 ])] = cat_optimal_results
@@ -738,7 +738,7 @@ def compute_and_plot_metric_over_metric_cascading_categories(self, class_name: s
738738 cat_optimal_results = total_optimal_results .loc [total_optimal_results [metric2 ] <= cutoff ]
739739 new_data_per_complete_selection [metric2 + '<=' + str (cutoff )] = cat_optimal_results
740740 else :
741- cat_optimal_results = total_optimal_results .loc [metric2_cutoffs [c - 1 ] < total_optimal_results [metric2 ] <= cutoff ]
741+ cat_optimal_results = total_optimal_results .loc [( total_optimal_results [ metric2 ] > metric2_cutoffs [c - 1 ]) & ( total_optimal_results [metric2 ] <= cutoff ) ]
742742 new_data_per_complete_selection [metric2 + ']' + str (metric2_cutoffs [c - 1 ]) + ',' + str (cutoff ) + ']' ] = cat_optimal_results
743743 cat_optimal_results = total_optimal_results .loc [total_optimal_results [metric2 ] > metric2_cutoffs [- 1 ]]
744744 new_data_per_complete_selection [metric2 + '>' + str (metric2_cutoffs [- 1 ])] = cat_optimal_results
@@ -750,8 +750,7 @@ def compute_and_plot_metric_over_metric_cascading_categories(self, class_name: s
750750 cat_optimal_results = results_pool .loc [results_pool [metric2 ] <= cutoff ]
751751 new_data_per_complete_selection [sel + ';' + metric2 + '<=' + str (cutoff )] = cat_optimal_results
752752 else :
753- cat_optimal_results = results_pool .loc [
754- metric2_cutoffs [c - 1 ] < results_pool [metric2 ] <= cutoff ]
753+ cat_optimal_results = results_pool .loc [(results_pool [metric2 ] > metric2_cutoffs [c - 1 ]) & (results_pool [metric2 ] <= cutoff )]
755754 new_data_per_complete_selection [sel + ';' + metric2 +
756755 ']' + str (metric2_cutoffs [c - 1 ]) + ',' + str (cutoff ) + ']' ] = cat_optimal_results
757756 cat_optimal_results = results_pool .loc [
0 commit comments