1414 SelectRandomFeatures , EqualFreq , RemoveNaNColumns , DropInstances , \
1515 EqualWidth , SelectBestFeatures , RemoveNaNRows , Preprocess , Scale , \
1616 Randomize , Continuize , Discretize , Impute , SklImpute , Normalize , \
17- ProjectCUR , ProjectPCA , RemoveConstant , SmartNormalize
17+ ProjectCUR , ProjectPCA , RemoveConstant , AdaptiveNormalize
1818from Orange .util import OrangeDeprecationWarning
1919
2020
@@ -168,7 +168,7 @@ def test_scaling_pickling(self):
168168 self .assertIs (c1 .scale , c .scale )
169169
170170
171- class TestSmartNormalize (unittest .TestCase ):
171+ class TestAdaptiveNormalize (unittest .TestCase ):
172172 """
173173 Checks if output for sparse data is the same as for Scale
174174 preprocessor. For dense data the output should match that
@@ -180,12 +180,12 @@ def setUp(self):
180180
181181 def test_dense_pps (self ):
182182 true_out = Normalize ()(self .data )
183- out = SmartNormalize ()(self .data )
183+ out = AdaptiveNormalize ()(self .data )
184184 np .testing .assert_array_equal (out , true_out )
185185
186186 def test_sparse_pps (self ):
187187 self .data .X = csr_matrix (self .data .X )
188- out = SmartNormalize ()(self .data )
189- true_out = Scale (center = Scale .NoCentering )(self .data )
188+ out = AdaptiveNormalize ()(self .data )
189+ true_out = Scale (center = Scale .NoCentering , scale = Scale . Span )(self .data )
190190 np .testing .assert_array_equal (out , true_out )
191191 self .data = self .data .X .toarray ()
0 commit comments