in src/responsibleai/rai_analyse/_score_card/_rai_insight_data.py [0:0]
def get_error_analysis_data(self, target_metric):
# recompute error analysis based on target metric if requested metric does not match existing metric
if self.raiinsight.error_analysis._analyzer._metric != target_metric:
self.raiinsight.error_analysis._analyzer._metric = target_metric
for c in self.raiinsight.error_analysis._ea_config_list:
c.is_computed = False
self.raiinsight.error_analysis._ea_report_list = []
self.raiinsight.error_analysis.compute()
return self.raiinsight.error_analysis.get_data()