0bce72b226839156cd2d311fd1a1580e40d6dbb7,census/keras/trainer/model.py,,generator_input,#Any#Any#,134

Before Change


    label = pd.get_dummies(input_data.pop(LABEL_COLUMN))

    input_data = to_numeric_features(input_data)
    return ( (input_data.iloc[[index]], label.iloc[[index]]) for index in xrange(input_data.size) )

After Change



    input_data = to_numeric_features(input_data)
    n_rows = input_data.shape[0]
    return ( (input_data.iloc[[index % n_rows]], label.iloc[[index % n_rows]]) for index in itertools.count() )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 0bce72b226839156cd2d311fd1a1580e40d6dbb7
Time: 2017-08-25
Author: puneith@google.com
File Name: census/keras/trainer/model.py
Class Name:
Method Name: generator_input


Project Name: matplotlib/matplotlib
Commit Name: 34b8eb46e5de6b760bc131e461755042716e259d
Time: 2018-02-07
Author: story645@gmail.com
File Name: lib/matplotlib/category.py
Class Name: UnitData
Method Name: __init__


Project Name: samuelclay/NewsBlur
Commit Name: 9cc0b80a7663b9e571cb7f39da462a39378ff954
Time: 2012-08-09
Author: samuel@ofbrooklyn.com
File Name: apps/reader/tasks.py
Class Name: FreshenHomepage
Method Name: run