c562ef432e0b58479234392fd14527125ec37ed9,pycm/pycm_util.py,,add_number_label,#,440
Before Change
diff_matrix_max = float(diff_matrix.max())
for i in range(len(classes)):
for j in range(len(classes)):
color = cmap(round(diff_matrix[i][j] / diff_matrix_max) )
if number_label_cmap is not None:
color = number_label_cmap(
float(matrix[i][j]) / float(matrix.max()))
After Change
float(matrix[i][j]) / float(matrix.max()))
x = j
y = i
if plot_lib == "seaborn":
x += 0.5
y += 0.5
ax.text(x,
y,
str(matrix[i][j]),
horizontalalignment="center",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: sepandhaghighi/pycm
Commit Name: c562ef432e0b58479234392fd14527125ec37ed9
Time: 2020-10-04
Author: sabouri.sadra@gmail.com
File Name: pycm/pycm_util.py
Class Name:
Method Name: add_number_label
Project Name: nilmtk/nilmtk
Commit Name: 1edcc86eb40c55259fff85ec4e14b4373a6bb589
Time: 2014-12-09
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot
Project Name: kbardool/keras-frcnn
Commit Name: 959c21d699cc0ce4bf74d0a4838bfda7f172848f
Time: 2017-03-03
Author: yannhenon@gmail.com
File Name: keras_frcnn/RoiPoolingConv.py
Class Name: RoiPoolingConv
Method Name: call