Skip to content

Commit eae79fc

Browse files
Apply suggestions from code review
Co-authored-by: nabenabe0928 <[email protected]>
1 parent 5c74fc2 commit eae79fc

File tree

1 file changed

+1
-1
lines changed
  • autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/scaling

1 file changed

+1
-1
lines changed

autoPyTorch/pipeline/components/preprocessing/tabular_preprocessing/scaling/RobustScaler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
def fit(self, X: Dict[str, Any], y: Any = None) -> BaseScaler:
3939

4040
self.check_requirements(X, y)
41-
with_centering = False if X['dataset_properties']['issparse'] else True
41+
with_centering = bool(not X['dataset_properties']['issparse'])
4242

4343
self.preprocessor['numerical'] = SklearnRobustScaler(quantile_range=(self.q_min, self.q_max),
4444
with_centering=with_centering,

0 commit comments

Comments
 (0)