087656c8aa07321034d0ba15102bec5961e8af98,ml_perf/eval_models.py,,main,#,130

Before Change


    models = load_train_times()
    for i, (timestamp, name, path) in enumerate(models):
        if int(name) < FLAGS.start:
            logging.info("Skiping %s", name)
            continue
        winrate = evaluate_model(path)
        if winrate >= FLAGS.winrate:
            print("Model {} beat target after {}s".format(name, timestamp))

After Change


    models = load_train_times()

    // Skip all models earlier than start and apply step.
    models = [x for x in models if int(x[1]) >= FLAGS.start][::FLAGS.step]

    for i, (timestamp, name, path) in enumerate(models):
        winrate = evaluate_model(path)
        if winrate >= FLAGS.winrate:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/minigo
Commit Name: 087656c8aa07321034d0ba15102bec5961e8af98
Time: 2020-01-03
Author: tmadams@google.com
File Name: ml_perf/eval_models.py
Class Name:
Method Name: main


Project Name: gyoisamurai/GyoiThon
Commit Name: 4f53bca9b044b20bc4aa8b7719bbbb2984623b3a
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 5765f471197edbf64a57dd2628dcd3051c7ea46c
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: gyoithon.py
Class Name:
Method Name: