Skip to content

Commit eb95578

Browse files
committed
[PR response]: deleted unneeded changes from merge and fixed the doc-string.
1 parent 00aaaef commit eb95578

File tree

5 files changed

+8
-19
lines changed

5 files changed

+8
-19
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,3 @@ dask-worker-space/
138138
# Test output
139139
tmp/
140140
.tmp_evaluation
141-
142-
# private
143-
grep.py
144-
private/

autoPyTorch/datasets/base_dataset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ def update_transform(self, transform: Optional[torchvision.transforms.Compose],
161161

162162
def __getitem__(self, index: int, train: bool = True) -> Tuple[np.ndarray, ...]:
163163
"""
164-
The base dataset uses a Subset of the data. Nevertheless, the base dataset expect
165-
both validation and test data to be present in the same dataset, which is motivated
166-
by the need to dynamically give train/test data with the __getitem__ command.
164+
The base dataset uses a Subset of the data. Nevertheless, the base dataset expects
165+
both validation and test data to be present in the same dataset, which motivates
166+
the need to dynamically give train/test data with the __getitem__ command.
167167
168168
This method yields a datapoint of the whole data (after a Subset has selected a given
169169
item, based on the resampling strategy) and applies a train/testing transformation, if any.

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def get_properties(dataset_properties: typing.Optional[typing.Dict[str, typing.A
5656
def get_hyperparameter_search_space(dataset_properties: typing.Optional[typing.Dict] = None,
5757
weighted_loss: typing.Tuple[typing.Tuple, bool] = ((True, False), True)
5858
) -> ConfigurationSpace:
59-
weighted_loss = CategoricalHyperparameter("weighted_loss", choices=weighted_loss[0],
60-
default_value=weighted_loss[1])
6159
cs = ConfigurationSpace()
6260
if dataset_properties is not None:
6361
if STRING_TO_TASK_TYPES[dataset_properties['task_type']] in CLASSIFICATION_TASKS:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def get_components(self) -> Dict[str, autoPyTorchComponent]:
9898
return components
9999

100100
def get_hyperparameter_search_space(
101-
self,
102-
dataset_properties: Optional[Dict[str, str]] = None,
103-
default: Optional[str] = None,
104-
include: Optional[List[str]] = None,
105-
exclude: Optional[List[str]] = None,
101+
self,
102+
dataset_properties: Optional[Dict[str, str]] = None,
103+
default: Optional[str] = None,
104+
include: Optional[List[str]] = None,
105+
exclude: Optional[List[str]] = None,
106106
) -> ConfigurationSpace:
107107
"""Returns the configuration space of the current chosen components
108108

test/test_pipeline/components/test_tabular_column_transformer.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
TabularColumnTransformer
1313
)
1414

15-
@pytest.mark.parametrize("fit_dictionary", ['fit_dictionary_numerical_only',
16-
'fit_dictionary_categorical_only',
17-
'fit_dictionary_num_and_categorical'], indirect=True)
18-
class TestTabularTransformer:
19-
def test_tabular_preprocess(self, fit_dictionary):
2015

2116
@pytest.mark.parametrize("fit_dictionary_tabular", ['classification_numerical_only',
2217
'classification_categorical_only',

0 commit comments

Comments
 (0)