ea2d56b0cc3a76f4e30685626bdf4bad2c4b3427,seglearn/util.py,,check_ts_data,#Any#Any#,36

Before Change


        if np.count_nonzero(Nty == 1) == Nx:
            return
        elif np.count_nonzero(Nty == Ntx) == Nx:
            return
        else:
            raise ValueError("Invalid time series lengths.\n"
                             "Ns: ", Nx,
                             "Ntx: ", Ntx,

After Change


            return False
        elif np.count_nonzero(Nty == Ntx) == Nx:  // y is a time series
            return True
        elif np.count_nonzero(Nty == Nty[0]) == Nx:  // target vector (eg multilabel or onehot)
            return False
        else:
            raise ValueError("Invalid time series lengths.\n"
                             "Ns: ", Nx,
                             "Ntx: ", Ntx,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmbee/seglearn
Commit Name: ea2d56b0cc3a76f4e30685626bdf4bad2c4b3427
Time: 2019-09-25
Author: david.mo.burns@gmail.com
File Name: seglearn/util.py
Class Name:
Method Name: check_ts_data


Project Name: automl/auto-sklearn
Commit Name: b53c7e1fc510eaa3154c933e549de1580425a144
Time: 2018-12-06
Author: 31531627+ahn1340@users.noreply.github.com
File Name: autosklearn/ensembles/ensemble_selection.py
Class Name: EnsembleSelection
Method Name: predict


Project Name: scipy/scipy
Commit Name: eae6badd524c2c9c52c84c0ef3be6e6745a83bdd
Time: 2013-06-20
Author: argriffi@ncsu.edu
File Name: scipy/linalg/_matfuncs_inv_ssq.py
Class Name:
Method Name: _remainder_matrix_power