From 919f93086e7f34db0dd92603adec6b9323c5bcde Mon Sep 17 00:00:00 2001 From: thibaultdvx <154365476+thibaultdvx@users.noreply.github.com> Date: Wed, 5 Jun 2024 09:40:44 +0200 Subject: [PATCH] change find_splits to _find_splits --- clinicadl/config/config/cross_validation.py | 2 +- clinicadl/predict/predict_manager.py | 2 +- clinicadl/utils/meta_maps/getter.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clinicadl/config/config/cross_validation.py b/clinicadl/config/config/cross_validation.py index fd2b4cb40..3441d72d1 100644 --- a/clinicadl/config/config/cross_validation.py +++ b/clinicadl/config/config/cross_validation.py @@ -34,5 +34,5 @@ def validator_split(cls, v): def adapt_cross_val_with_maps_manager_info(self, maps_manager: MapsManager): # TEMPORARY if not self.split: - self.split = maps_manager._find_splits() + self.split = maps_manager.find_splits() logger.debug(f"List of splits {self.split}") diff --git a/clinicadl/predict/predict_manager.py b/clinicadl/predict/predict_manager.py index 6684cb149..01df83dd8 100644 --- a/clinicadl/predict/predict_manager.py +++ b/clinicadl/predict/predict_manager.py @@ -791,7 +791,7 @@ def _check_data_group( raise MAPSError("Cannot overwrite train or validation data group.") else: # if not split_list: - # split_list = self.maps_manager._find_splits() + # split_list = self.maps_manager.find_splits() assert self._config.split for split in self._config.split: selection_metrics = self.maps_manager._find_selection_metrics( diff --git a/clinicadl/utils/meta_maps/getter.py b/clinicadl/utils/meta_maps/getter.py index 2f400ffc3..ea75e4da5 100644 --- a/clinicadl/utils/meta_maps/getter.py +++ b/clinicadl/utils/meta_maps/getter.py @@ -34,7 +34,7 @@ def meta_maps_analysis(launch_dir: Path, evaluation_metric="loss"): for job in jobs_list: performances_dict[job] = dict() maps_manager = MapsManager(launch_dir / job) - split_list = maps_manager._find_splits() + split_list = maps_manager.find_splits() split_set = split_set | set(split_list) for split in split_set: performances_dict[job][split] = dict()