316650922424e552400b8679f45a49d11acae871,src/garage/_functions.py,,obtain_evaluation_episodes,#Any#Any#Any#Any#Any#,141

Before Change


    episodes = []
    // Use a finite length rollout for evaluation.

    for _ in range(num_eps):
        eps = rollout(env,
                      policy,
                      max_episode_length=max_episode_length,
                      deterministic=deterministic)
        episodes.append(eps)
    return EpisodeBatch.from_list(env.spec, episodes)


def log_multitask_performance(itr, batch, discount, name_map=None):

After Change


    episodes = []
    // Use a finite length rollout for evaluation.

    with click.progressbar(range(num_eps), label="Evaluating") as pbar:
        for _ in pbar:
            eps = rollout(env,
                          policy,
                          max_episode_length=max_episode_length,
                          deterministic=deterministic)
            episodes.append(eps)
    return EpisodeBatch.from_list(env.spec, episodes)


def log_multitask_performance(itr, batch, discount, name_map=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: rlworkgroup/garage
Commit Name: 316650922424e552400b8679f45a49d11acae871
Time: 2020-11-10
Author: 41180126+krzentner@users.noreply.github.com
File Name: src/garage/_functions.py
Class Name:
Method Name: obtain_evaluation_episodes


Project Name: mittagessen/kraken
Commit Name: 78f505a6cd78c0072ea1a77afb229f8d6658d17b
Time: 2018-05-23
Author: mittagessen@l.unchti.me
File Name: kraken/ketos.py
Class Name:
Method Name: train


Project Name: mittagessen/kraken
Commit Name: 78f505a6cd78c0072ea1a77afb229f8d6658d17b
Time: 2018-05-23
Author: mittagessen@l.unchti.me
File Name: kraken/ketos.py
Class Name:
Method Name: line_generator