Skip to content

Commit bce0f6d

Browse files
Apply suggestions from code review
Co-authored-by: nabenabe0928 <[email protected]>
1 parent 9c846bf commit bce0f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoPyTorch/datasets/tabular_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(self,
8989
seed=seed, train_transforms=train_transforms,
9090
dataset_name=dataset_name,
9191
val_transforms=val_transforms)
92-
self.issigned = bool(np.any(X.data if self.issparse else X < 0))
92+
self.issigned = bool(np.any((X.data if self.issparse else X) < 0))
9393
if self.output_type is not None:
9494
if STRING_TO_OUTPUT_TYPES[self.output_type] in CLASSIFICATION_OUTPUTS:
9595
self.task_type = TASK_TYPES_TO_STRING[TABULAR_CLASSIFICATION]

autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/feature_preprocessing/ExtraTreesPreprocessorClassification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class ExtraTreesPreprocessorClassification(autoPyTorchFeaturePreprocessingComponent):
2323
"""
24-
Selects features based on importance weights calculated using extra trees
24+
Select features based on importance weights calculated using extra trees
2525
"""
2626
def __init__(self, bootstrap: bool = True, n_estimators: int = 10,
2727
criterion: str = "gini", max_features: float = 0.5,

0 commit comments

Comments
 (0)