Skip to content

Commit

Permalink
change find_splits to _find_splits
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultdvx committed Jun 5, 2024
1 parent 375e67e commit 919f930
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clinicadl/config/config/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
2 changes: 1 addition & 1 deletion clinicadl/predict/predict_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion clinicadl/utils/meta_maps/getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 919f930

Please sign in to comment.