95eae9185d8df5dc4d3de030dc19c1d475f18e0f,survival/util.py,,check_y_survival,#Any#,21

Before Change


    if not numpy.issubdtype(yt.dtype, numpy.number):
        raise ValueError("time must be numeric, but found {}".format(yt.dtype))

    return event, yt


def check_arrays_survival(X, y, force_all_finite=True):

After Change


            return_val.append(yt)
            continue

        yt = check_array(yt, ensure_2d=False)
        if not numpy.issubdtype(yt.dtype, numpy.number):
            raise ValueError("time must be numeric, but found {} for argument {}".format(yt.dtype, i + 2))

        return_val.append(yt)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: sebp/scikit-survival
Commit Name: 95eae9185d8df5dc4d3de030dc19c1d475f18e0f
Time: 2016-12-26
Author: sebp@k-d-w.org
File Name: survival/util.py
Class Name:
Method Name: check_y_survival


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 2f0a4b24da69a6717754acb3ad9add8b14c86659
Time: 2018-09-06
Author: g.lemaitre58@gmail.com
File Name: imblearn/under_sampling/_prototype_selection/_random_under_sampler.py
Class Name: RandomUnderSampler
Method Name: _check_X_y


Project Name: rtavenar/tslearn
Commit Name: 798f945eadec05362ce8687cc83793fc8eab4d73
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: score


Project Name: sebp/scikit-survival
Commit Name: 047873d950187d8fd1b8c457dfc1ccd8c6626dec
Time: 2019-04-25
Author: sebp@k-d-w.org
File Name: sksurv/metrics.py
Class Name:
Method Name: concordance_index_ipcw