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

Before Change



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

After Change


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

        if Y is not None:
            Y = np.array(Y).astype(np.float32)

        if idxs is None:
            if Y is not None:
                return F, Y
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: scikit-image/scikit-image
Commit Name: b8a5e5db6c2c0ff9540d84c11c05b21fc6023ae6
Time: 2020-05-04
Author: rfezzani@gmail.com
File Name: skimage/color/colorconv.py
Class Name:
Method Name: rgba2rgb


Project Name: Kaixhin/Rainbow
Commit Name: fbc23881c651d69da1f7ba92bdab78009d33bf94
Time: 2020-08-20
Author: 32273096+Aladoro@users.noreply.github.com
File Name: memory.py
Class Name: SegmentTree
Method Name: _retrieve