535923e2b752ab44be4516b10947f02acfb44769,celer/wrapper.py,,celer,#,14

Before Change


            X = np.asfortranarray(X)
    else:
        if X.getformat() != "csc" or not X.has_sorted_indices:
            raise ValueError("Give X as csc matrix with sorted indices")

    n_features = X.shape[1]
    if beta_init is None:
        beta_init = np.zeros(n_features)

After Change


            raise TypeError("Sparse X must be in column sparse format with "
                            "sorted indices.")
    // cython function only accepts float64 for X and y:
    if X.dtype != "float64":
        X = X.astype(np.float64)
    if y.dtype != "float64":
        y = y.astype(np.float64)

    n_features = X.shape[1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mathurinm/celer
Commit Name: 535923e2b752ab44be4516b10947f02acfb44769
Time: 2018-04-18
Author: mathurin.massias@gmail.com
File Name: celer/wrapper.py
Class Name:
Method Name: celer


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: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: save_featureset