7dde1e43ed5d32d97ccd0749f61a54ed594c3c5b,fastFM/mcmc.py,,_validate_mcmc_fit_input,#Any#Any#Any#,38

Before Change


            warnings.warn("convert X_test to csc")
        if not sp.isspmatrix_csc(X_train):
            X_train = X_train.tocsc()
            warnings.warn("convert X_train to csc")
        assert X_train.shape[1] == X_test.shape[1]
        assert X_train.shape[0] == len(y_train)

After Change



        check_consistent_length(X_train, y_train)
        assert_all_finite(y_train)
        y_train = y_train.astype(np.float64)

        assert X_train.shape[1] == X_test.shape[1]
        X_train = check_array(X_train, accept_sparse="csc", dtype=np.float64,
                order="F")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ibayer/fastFM
Commit Name: 7dde1e43ed5d32d97ccd0749f61a54ed594c3c5b
Time: 2015-04-07
Author: immanuel.bayer@uni-konstanz.de
File Name: fastFM/mcmc.py
Class Name:
Method Name: _validate_mcmc_fit_input


Project Name: scikit-image/scikit-image
Commit Name: 3ae8282716c83b0d903b7f5aa26393161763bef2
Time: 2020-04-12
Author: rfezzani@gmail.com
File Name: skimage/io/_io.py
Class Name:
Method Name: imsave


Project Name: openai/gym
Commit Name: cee92691ad858952b4ed46c08cad6cc682868d22
Time: 2019-03-24
Author: zuoxingdong@users.noreply.github.com
File Name: gym/spaces/box.py
Class Name: Box
Method Name: __init__