79c3d3004346ae19bb13332f84771a00a224e788,numerox/util.py,,cv,#Any#Any#Any#,5

Before Change


    kf = KFold(n_splits=kfold, shuffle=True, random_state=random_state)
    eras = self.era_dh.unique()
    for train_index, test_index in kf.split(eras):
        idx = self.df.era.isin(eras[train_index])
        dtrain = self[idx]
        idx = self.df.era.isin(eras[test_index])
        dtest = self[idx]
        yield dtrain, dtest

After Change


    eras = data.unique_era()
    for train_index, test_index in kf.split(eras):
        era_train = [eras[i] for i in train_index]
        era_test = [eras[i] for i in test_index]
        dtrain = data.era_isin(era_train)
        dtest = data.era_isin(era_test)
        yield dtrain, dtest
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: kwgoodman/numerox
Commit Name: 79c3d3004346ae19bb13332f84771a00a224e788
Time: 2017-10-24
Author: kwgoodman@gmail.com
File Name: numerox/util.py
Class Name:
Method Name: cv


Project Name: shaypal5/pdpipe
Commit Name: f42d1f58ff4fb0b08eaf15f92aeb1f59646f6cbb
Time: 2019-12-07
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: RowDrop
Method Name: _transform


Project Name: aertslab/pySCENIC
Commit Name: 6d6a32dd677aa6097c4e77b359f81989c3e949af
Time: 2018-04-05
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/rnkdb.py
Class Name:
Method Name: build_rankings


Project Name: theislab/scanpy
Commit Name: 5a4260be766333d81bddbb0fa5fd591fc78bd763
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/get.py
Class Name:
Method Name: obs_df