Skip to content

Commit 2e7b462

Browse files
Allow specifying the network type in include (#78)
* Allow specifying the network type in include * Fix test flake 8 * fix test api * increased time for func eval in cros validation * Addressed comments Co-authored-by: Ravin Kohli <[email protected]>
1 parent 891fff2 commit 2e7b462

37 files changed

+1156
-1028
lines changed

autoPyTorch/pipeline/components/preprocessing/image_preprocessing/normalise/base_normalizer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,4 @@ def check_requirements(self, X: Dict[str, Any], y: Any = None) -> None:
3939
def __str__(self) -> str:
4040
""" Allow a nice understanding of what components where used """
4141
string = self.__class__.__name__
42-
info = vars(self)
43-
# Remove unwanted info
44-
info.pop('random_state', None)
45-
string += " (" + str(info) + ")"
4642
return string

autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/base_tabular_preprocessing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,4 @@ def get_preprocessor_dict(self) -> Dict[str, BaseEstimator]:
3434
def __str__(self) -> str:
3535
""" Allow a nice understanding of what components where used """
3636
string = self.__class__.__name__
37-
info = vars(self)
38-
# Remove unwanted info
39-
info.pop('early_preprocessor', None)
40-
info.pop('column_transformer', None)
41-
info.pop('random_state', None)
42-
info.pop('_fit_requirements', None)
43-
if len(info.keys()) != 0:
44-
string += " (" + str(info) + ")"
4537
return string

autoPyTorch/pipeline/components/setup/augmentation/image/ImageAugmenter.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,4 @@ def get_properties(dataset_properties: Optional[Dict[str, str]] = None
131131
def __str__(self) -> str:
132132
""" Allow a nice understanding of what components where used """
133133
string = self.__class__.__name__
134-
info = vars(self)
135-
augmenters = list()
136-
for augmenter in info['augmenter']:
137-
augmenters.append(augmenter.name)
138-
info['augmenters'] = augmenters
139-
# Remove unwanted info
140-
info.pop('random_state', None)
141-
info.pop('available_augmenters', None)
142-
info.pop('augmenter', None)
143-
string += " (" + str(info) + ")"
144134
return string

autoPyTorch/pipeline/components/setup/early_preprocessor/EarlyPreprocessing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,4 @@ def get_properties(dataset_properties: Optional[Dict[str, Any]] = None) -> Dict[
6161
def __str__(self) -> str:
6262
""" Allow a nice understanding of what components where used """
6363
string = self.__class__.__name__
64-
info = vars(self)
65-
# Remove unwanted info
66-
info.pop('random_state', None)
67-
string += " (" + str(info) + ")"
6864
return string

autoPyTorch/pipeline/components/setup/lr_scheduler/base_scheduler.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,4 @@ def get_scheduler(self) -> _LRScheduler:
4040
def __str__(self) -> str:
4141
""" Allow a nice understanding of what components where used """
4242
string = self.scheduler.__class__.__name__
43-
info = vars(self)
44-
# Remove unwanted info
45-
info.pop('scheduler', None)
46-
info.pop('random_state', None)
47-
string += " (" + str(info) + ")"
4843
return string

autoPyTorch/pipeline/components/setup/network/BackboneHeadNet.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

autoPyTorch/pipeline/components/setup/network/backbone/__init__.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)