def _set_component_paths_prefix()

in src/responsibleai/rai_analyse/_score_card/_rai_insight_data.py [0:0]


    def _set_component_paths_prefix(self):
        for c in self.components:
            component_path = os.path.join(self.raiinsight_path, c)
            if os.path.isdir(component_path):
                first_guid = next(iter(os.listdir(component_path)), None)
            else:
                continue
            if first_guid:
                self.component_path_prefix[c] = os.path.join(
                    self.raiinsight_path, c, first_guid, "data"
                )
                if c == "explainer":
                    self.component_path_prefix[c] = os.path.join(
                        self.component_path_prefix[c], "explainer"
                    )

        self.component_path_prefix["predictions"] = os.path.join(
            self.raiinsight_path, "predictions"
        )