6823f7b27dc99eeeb3ba7be57dc89d2e1908422a,ml_perf/reference_implementation.py,,rl_loop,#,360

Before Change


    else:
      // Run eval, validation & selfplay sequentially.
      model_win_rate = wait(evaluate_trained_model(state))
      wait(validate(state, holdout_glob))
      wait(selfplay(state))

    if model_win_rate >= FLAGS.gating_win_rate:

After Change


        // If we"re bootstrapping a checkpoint, evaluate the newly trained model
        // against the target.
        if FLAGS.bootstrap:
            target_model_path = os.path.join(fsdb.models_dir(), "target.pb")
            sgf_dir = os.path.join(
                fsdb.eval_dir(),
                "{}-vs-target".format(state.train_model_name))
            win_rate_vs_target = wait(evaluate_model(
                state.train_model_path, target_model_path, sgf_dir))
            if (win_rate_vs_target >= FLAGS.bootstrap_target_win_rate and
                prev_win_rate_vs_target > 0):
                break
            prev_win_rate_vs_target = win_rate_vs_target
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: tensorflow/minigo
Commit Name: 45f4f81aaf15c1122b1f6623e1bef297e1837dbd
Time: 2018-02-12
Author: jacksona@google.com
File Name: rl_loop.py
Class Name:
Method Name: validate


Project Name: tensorflow/minigo
Commit Name: 9278fa98f870950cfb3617827404b09b35bb520b
Time: 2018-02-24
Author: brian.kihoon.lee@gmail.com
File Name: local_rl_loop.py
Class Name:
Method Name: rl_loop