2dd2efb5475cb42a21f0dacaef786c89869bf2de,ml_perf/eval_models.py,,main,#Any#,41

Before Change



def main(unused_argv):
  sgf_dir = os.path.join(fsdb.eval_dir(), "target")
  target = "tf," + os.path.join(fsdb.models_dir(), "target.pb")
  models = load_train_times()
  for i, (timestamp, name, path) in enumerate(models):
    winrate = wait(evaluate_model(path, name, target, sgf_dir))
    if winrate >= 0.50:

After Change


def main(unused_argv):
    models = load_train_times()
    for i, (timestamp, name, path) in enumerate(models[FLAGS.start:]):
        winrate = evaluate_model(path)
        if winrate >= 0.50:
            break

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/minigo
Commit Name: 2dd2efb5475cb42a21f0dacaef786c89869bf2de
Time: 2019-12-13
Author: tmadams@google.com
File Name: ml_perf/eval_models.py
Class Name:
Method Name: main


Project Name: tensorflow/models
Commit Name: 20070ca46f27964710a4f187d0437164e5a732c7
Time: 2018-06-20
Author: taylorrobie@google.com
File Name: official/recommendation/ncf_main.py
Class Name:
Method Name: run_ncf


Project Name: tensorflow/minigo
Commit Name: 6823f7b27dc99eeeb3ba7be57dc89d2e1908422a
Time: 2019-09-23
Author: tmadams@google.com
File Name: ml_perf/reference_implementation.py
Class Name:
Method Name: rl_loop