Skip to content

Commit

Permalink
Allow specifying the network type in include (#78)
Browse files Browse the repository at this point in the history
* 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 <kohliravin7@gmail.com>
  • Loading branch information
franchuterivera and ravinkohli committed Jan 28, 2021
1 parent 891fff2 commit 2e7b462
Show file tree
Hide file tree
Showing 37 changed files with 1,156 additions and 1,028 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@ def check_requirements(self, X: Dict[str, Any], y: Any = None) -> None:
def __str__(self) -> str:
""" Allow a nice understanding of what components where used """
string = self.__class__.__name__
info = vars(self)
# Remove unwanted info
info.pop('random_state', None)
string += " (" + str(info) + ")"
return string
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,4 @@ def get_preprocessor_dict(self) -> Dict[str, BaseEstimator]:
def __str__(self) -> str:
""" Allow a nice understanding of what components where used """
string = self.__class__.__name__
info = vars(self)
# Remove unwanted info
info.pop('early_preprocessor', None)
info.pop('column_transformer', None)
info.pop('random_state', None)
info.pop('_fit_requirements', None)
if len(info.keys()) != 0:
string += " (" + str(info) + ")"
return string
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,4 @@ def get_properties(dataset_properties: Optional[Dict[str, str]] = None
def __str__(self) -> str:
""" Allow a nice understanding of what components where used """
string = self.__class__.__name__
info = vars(self)
augmenters = list()
for augmenter in info['augmenter']:
augmenters.append(augmenter.name)
info['augmenters'] = augmenters
# Remove unwanted info
info.pop('random_state', None)
info.pop('available_augmenters', None)
info.pop('augmenter', None)
string += " (" + str(info) + ")"
return string
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,4 @@ def get_properties(dataset_properties: Optional[Dict[str, Any]] = None) -> Dict[
def __str__(self) -> str:
""" Allow a nice understanding of what components where used """
string = self.__class__.__name__
info = vars(self)
# Remove unwanted info
info.pop('random_state', None)
string += " (" + str(info) + ")"
return string
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,4 @@ def get_scheduler(self) -> _LRScheduler:
def __str__(self) -> str:
""" Allow a nice understanding of what components where used """
string = self.scheduler.__class__.__name__
info = vars(self)
# Remove unwanted info
info.pop('scheduler', None)
info.pop('random_state', None)
string += " (" + str(info) + ")"
return string
112 changes: 0 additions & 112 deletions autoPyTorch/pipeline/components/setup/network/BackboneHeadNet.py

This file was deleted.

32 changes: 0 additions & 32 deletions autoPyTorch/pipeline/components/setup/network/backbone/__init__.py

This file was deleted.

0 comments on commit 2e7b462

Please sign in to comment.