1d47d97eb53488c05ba6375c0bd97b1e0f3ac1fa,simple_rl/utils/chart_utils.py,,average_data,#Any#Any#,79

Before Change


        all_instances = np.array(all_instances)
        avged = None
        try:
            avged = all_instances.sum(axis=0)/float(num_instances)
        except TypeError:
            print()
            print("(simple_rl) Plotting Error: an algorithm was run with inconsistent parameters.")

After Change



        // Take the average.
        num_instances = float(len(data[i]))
        all_instances_sum = np.array(np.array(all_instances).sum(axis=0))
        try:
            avged = all_instances_sum / num_instances
        except TypeError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: david-abel/simple_rl
Commit Name: 1d47d97eb53488c05ba6375c0bd97b1e0f3ac1fa
Time: 2018-01-24
Author: david_abel@brown.edu
File Name: simple_rl/utils/chart_utils.py
Class Name:
Method Name: average_data


Project Name: SeldonIO/seldon-core
Commit Name: 248491136ad350e7b9a749cfc2e53e66487a01b4
Time: 2018-12-19
Author: jk@seldon.io
File Name: examples/routers/epsilon_greedy/EpsilonGreedy.py
Class Name: EpsilonGreedy
Method Name: send_feedback


Project Name: PyMVPA/PyMVPA
Commit Name: 5bc47f908692c2c46173eb2451960816b6d0b58e
Time: 2010-01-10
Author: psederberg@gmail.com
File Name: mvpa/clfs/glmnet.py
Class Name: _GLMNET
Method Name: _predict