5e01ec2062f3eeb502f9454bc4915f4e92c675bb,simple_rl/utils/mdp_visualizer.py,,val_to_color,#Any#Any#Any#,16

Before Change


    """
    val_normalized = (val + 1) / 2.0
    diff_list = [bad_col[i] - good_col[i] for i in range(3)]
    result = tuple([max(min(int(bad_col[i] - (val_normalized**4)*diff_list[i]), 255), 0) for i in range(3)])
    return result

def _draw_title_text(mdp, screen):
    """

After Change


        result = tuple([255 * (1 - val) + col * val for col in good_col])
    else:
        // Show negative as interpolated between white (0) and bad_col (-1.0)
        result = tuple([255 * (1 - abs(val)) + col * abs(val) for col in bad_col])

    return result

def _draw_title_text(mdp, screen):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: david-abel/simple_rl
Commit Name: 5e01ec2062f3eeb502f9454bc4915f4e92c675bb
Time: 2018-04-02
Author: david_abel@brown.edu
File Name: simple_rl/utils/mdp_visualizer.py
Class Name:
Method Name: val_to_color


Project Name: keras-team/keras
Commit Name: 5ef0fc3215fb43f5772673b31c51ad8a6582bc39
Time: 2018-10-20
Author: mechaprabal@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: squeeze


Project Name: keras-team/keras
Commit Name: 5ef0fc3215fb43f5772673b31c51ad8a6582bc39
Time: 2018-10-20
Author: mechaprabal@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: reshape