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):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: lmcinnes/umap
Commit Name: 99b21021e5e6927cb49dea8c9318568a0c9f9899
Time: 2019-02-12
Author: leland.mcinnes@gmail.com
File Name: umap/umap_.py
Class Name: UMAP
Method Name: inverse_transform
Project Name: keras-team/keras
Commit Name: c913b6da92f6ab9a3f4c897caa4085e782a14680
Time: 2018-09-11
Author: rvinas@users.noreply.github.com
File Name: tests/keras/backend/reference_operations.py
Class Name:
Method Name: max