Skip to content

Commit 2cdb40a

Browse files
committed
fix merge conflicts after rebase
1 parent 8787186 commit 2cdb40a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

autoPyTorch/api/base_task.py

-21
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,7 @@ def _get_dataset_input_validator(
299299
y_train: Union[List, pd.DataFrame, np.ndarray],
300300
X_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
301301
y_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
302-
<<<<<<< HEAD
303302
resampling_strategy: Optional[ResamplingStrategies] = None,
304-
=======
305-
resampling_strategy: Optional[Union[
306-
CrossValTypes,
307-
HoldoutValTypes,
308-
NoResamplingStrategyTypes]] = None,
309-
>>>>>>> rebase and fix flake
310303
resampling_strategy_args: Optional[Dict[str, Any]] = None,
311304
dataset_name: Optional[str] = None,
312305
) -> Tuple[BaseDataset, BaseInputValidator]:
@@ -348,14 +341,7 @@ def get_dataset(
348341
y_train: Union[List, pd.DataFrame, np.ndarray],
349342
X_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
350343
y_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
351-
<<<<<<< HEAD
352344
resampling_strategy: Optional[ResamplingStrategies] = None,
353-
=======
354-
resampling_strategy: Optional[Union[
355-
CrossValTypes,
356-
HoldoutValTypes,
357-
NoResamplingStrategyTypes]] = None,
358-
>>>>>>> rebase and fix flake
359345
resampling_strategy_args: Optional[Dict[str, Any]] = None,
360346
dataset_name: Optional[str] = None,
361347
) -> BaseDataset:
@@ -1403,14 +1389,7 @@ def fit_pipeline(
14031389
X_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
14041390
y_test: Optional[Union[List, pd.DataFrame, np.ndarray]] = None,
14051391
dataset_name: Optional[str] = None,
1406-
<<<<<<< HEAD
14071392
resampling_strategy: Optional[Union[HoldoutValTypes, CrossValTypes, NoResamplingStrategyTypes]] = None,
1408-
=======
1409-
resampling_strategy: Optional[Union[
1410-
CrossValTypes,
1411-
HoldoutValTypes,
1412-
NoResamplingStrategyTypes]] = None,
1413-
>>>>>>> rebase and fix flake
14141393
resampling_strategy_args: Optional[Dict[str, Any]] = None,
14151394
run_time_limit_secs: int = 60,
14161395
memory_limit: Optional[int] = None,

autoPyTorch/pipeline/components/training/trainer/__init__.py

-4
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,9 @@ def early_stop_handler(self, X: Dict[str, Any]) -> bool:
516516
if self.checkpoint_dir is None:
517517
self.checkpoint_dir = tempfile.mkdtemp(dir=X['backend'].temporary_directory)
518518

519-
<<<<<<< HEAD
520519
last_epoch = self.run_summary.get_last_epoch()
521520
best_epoch = self.run_summary.get_best_epoch(split_type=self.early_stopping_split_type)
522521
epochs_since_best = last_epoch - best_epoch
523-
=======
524-
epochs_since_best = self.run_summary.get_last_epoch() - self.run_summary.get_best_epoch()
525-
>>>>>>> [FIX] Tests after rebase of `reg_cocktails` (#359)
526522

527523
# Save the checkpoint if there is a new best epoch
528524
best_path = os.path.join(self.checkpoint_dir, 'best.pth')

0 commit comments

Comments
 (0)