Skip to content

Commit c3192fb

Browse files
committed
apply suggestions from code review
1 parent c1d43c6 commit c3192fb

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
@@ -24,7 +24,7 @@
2424

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

0 commit comments

Comments
 (0)