113e984e70d693ae8686fd01438225cc193dae6d,tests/components/preprocessing/test_pca.py,PCAComponentTest,test_preprocessing_dtype,#PCAComponentTest#,20

Before Change


        configuration_space = PCA.get_hyperparameter_search_space()
        default = configuration_space.get_default_configuration()
        preprocessor = PCA(random_state=1,
                                    **{hp.hyperparameter.name: hp.value for hp
                                       in
                                       default.values.values()})
        preprocessor.fit(X_train)
        Xt = preprocessor.transform(X_train)
        self.assertEqual(Xt.dtype, np.float32)

After Change


        configuration_space = PCA.get_hyperparameter_search_space()
        default = configuration_space.get_default_configuration()
        preprocessor = PCA(random_state=1,
                           **{hp_name: default[hp_name] for hp_name in
                              default})
        preprocessor.fit(X_train)
        Xt = preprocessor.transform(X_train)
        self.assertEqual(Xt.dtype, np.float32)

        // np.float64
        X_train, Y_train, X_test, Y_test = get_dataset("iris")
        X_train = X_train.astype(np.float64)
        configuration_space = PCA.get_hyperparameter_search_space()
        default = configuration_space.get_default_configuration()
        preprocessor = PCA(random_state=1,
                           **{hp_name: default[hp_name] for hp_name in
                              default})
        preprocessor.fit(X_train, Y_train)
        Xt = preprocessor.transform(X_train)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: automl/auto-sklearn
Commit Name: 113e984e70d693ae8686fd01438225cc193dae6d
Time: 2015-05-22
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/components/preprocessing/test_pca.py
Class Name: PCAComponentTest
Method Name: test_preprocessing_dtype


Project Name: automl/auto-sklearn
Commit Name: 113e984e70d693ae8686fd01438225cc193dae6d
Time: 2015-05-22
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/components/preprocessing/test_select_percentile_classification.py
Class Name: SelectPercentileClassificationTest
Method Name: test_preprocessing_dtype


Project Name: automl/auto-sklearn
Commit Name: 113e984e70d693ae8686fd01438225cc193dae6d
Time: 2015-05-22
Author: feurerm@informatik.uni-freiburg.de
File Name: tests/components/preprocessing/test_select_percentile_regression.py
Class Name: SelectPercentileRegressionTest
Method Name: test_preprocessing_dtype