732197e23a937b7b6d196936519c16ec6317ea9f,rllib/utils/sgd.py,,do_minibatch_sgd,#Any#Any#Any#Any#Any#Any#,80

Before Change


                    }, minibatch.count)))[policy_id]
                for k, v in batch_fetches.get(LEARNER_STATS_KEY, {}).items():
                    iter_extra_fetches[k].append(v)
            logger.debug("{} {}".format(i, averaged(iter_extra_fetches)))
        fetches[policy_id] = averaged(iter_extra_fetches)
    return fetches

After Change


    if isinstance(samples, SampleBatch):
        samples = MultiAgentBatch({DEFAULT_POLICY_ID: samples}, samples.count)

    fetches = defaultdict(dict)
    for policy_id in policies.keys():
        if policy_id not in samples.policy_batches:
            continue
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 732197e23a937b7b6d196936519c16ec6317ea9f
Time: 2021-03-08
Author: sven@anyscale.io
File Name: rllib/utils/sgd.py
Class Name:
Method Name: do_minibatch_sgd


Project Name: tensorflow/datasets
Commit Name: 2c77c532b9d28e4431c9e52e7965321a188d68af
Time: 2019-08-08
Author: no-reply@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: dataset_docs_str


Project Name: leonsim/simhash
Commit Name: 6e8898b82f4591fe2256ca56be3c98836fe94b88
Time: 2017-10-31
Author: akellne@users.noreply.github.com
File Name: simhash/__init__.py
Class Name: Simhash
Method Name: __init__