f4e67efbb245f7a452bd8746db1fd37c0b14eb29,autosklearn/data/xy_data_manager.py,XYDataManager,__init__,#XYDataManager#Any#Any#Any#Any#Any#Any#Any#,14

Before Change



        self.info["task"] = task
        self.info["metric"] = metric
        self.info["is_sparse"] = 1 if sparse.issparse(data_x) else 0
        self.info["has_missing"] = np.all(np.isfinite(data_x))

        label_num = {
            REGRESSION: 1,

After Change



        self.info["task"] = task
        self.info["metric"] = metric
        if sparse.issparse(data_x):
            self.info["is_sparse"] = 1
            self.info["has_missing"] = np.all(np.isfinite(data_x.data))
        else:
            self.info["is_sparse"] = 0
            self.info["has_missing"] = np.all(np.isfinite(data_x))

        label_num = {
            REGRESSION: 1,
            BINARY_CLASSIFICATION: 2,
            MULTICLASS_CLASSIFICATION: len(np.unique(y)),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: automl/auto-sklearn
Commit Name: f4e67efbb245f7a452bd8746db1fd37c0b14eb29
Time: 2016-02-12
Author: heist.mendoza@gmail.com
File Name: autosklearn/data/xy_data_manager.py
Class Name: XYDataManager
Method Name: __init__


Project Name: scipy/scipy
Commit Name: 2bcc5894a75f52ac487467b4a3b03c799b2af24a
Time: 2019-02-28
Author: cdipaolo96@gmail.com
File Name: scipy/linalg/tests/test_sketches.py
Class Name: TestClarksonWoodruffTransform
Method Name: test_sketch_preserves_frobenius_norm


Project Name: automl/auto-sklearn
Commit Name: c30a2350808385141570dc4eec5e0a2d60b11908
Time: 2016-02-24
Author: heist.mendoza@gmail.com
File Name: autosklearn/data/xy_data_manager.py
Class Name: XYDataManager
Method Name: __init__