4763804450814a9f4a17935dc6cea68f6656ba72,src/fonduer/learning/disc_models/logistic_regression.py,LogisticRegression,_preprocess_data,#LogisticRegression#Any#Any#Any#Any#,40

Before Change



        C, F = X
        if issparse(F):
            F = F.todense()

        if idxs is None:
            if Y is not None:
                return [(C[i], F[i]) for i in range(len(C))], Y

After Change



        C, F = X
        if issparse(F):
            F = np.array(F.todense(), dtype=np.float32)

        if Y is not None:
            Y = np.array(Y).astype(np.float32)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: HazyResearch/fonduer
Commit Name: 4763804450814a9f4a17935dc6cea68f6656ba72
Time: 2018-12-31
Author: SenWu@users.noreply.github.com
File Name: src/fonduer/learning/disc_models/logistic_regression.py
Class Name: LogisticRegression
Method Name: _preprocess_data


Project Name: scipy/scipy
Commit Name: 053b5e677a6fd2f504065183a42cb3e9dcbd2cef
Time: 2013-05-06
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_expm_action.py
Class Name:
Method Name: _trace


Project Name: scipy/scipy
Commit Name: 053b5e677a6fd2f504065183a42cb3e9dcbd2cef
Time: 2013-05-06
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_expm_action.py
Class Name:
Method Name: _exact_inf_norm


Project Name: scipy/scipy
Commit Name: 053b5e677a6fd2f504065183a42cb3e9dcbd2cef
Time: 2013-05-06
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/_expm_action.py
Class Name:
Method Name: _exact_1_norm


Project Name: scipy/scipy
Commit Name: 053b5e677a6fd2f504065183a42cb3e9dcbd2cef
Time: 2013-05-06
Author: argriffi@ncsu.edu
File Name: scipy/sparse/linalg/tests/test_expm_action.py
Class Name: TestExpmAction
Method Name: test_sparse_expm_action