2118f87a1d95e673ac0994989a5464480ce2ffe1,pycm/pycm_obj.py,ConfusionMatrix,plot,#ConfusionMatrix#,884
Before Change
matrix = self.to_array(normalized=normalized)
if normalized:
title += " (Normalized)"
classes = [self.label_map[_class] for _class in sorted(self.label_map.keys()) ]
if plot_lib == "matplotlib":
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
After Change
if normalized:
title += " (Normalized)"
classes = sorted(self.classes)
if one_vs_all and class_name in classes:
classes = [class_name, "~"]
if plot_lib == "matplotlib":
from matplotlib import pyplot as plt
fig, ax = plt.subplots()
plt.imshow(matrix, cmap=plt.cm.gray_r)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: sepandhaghighi/pycm
Commit Name: 2118f87a1d95e673ac0994989a5464480ce2ffe1
Time: 2020-09-30
Author: sabouri.sadra@gmail.com
File Name: pycm/pycm_obj.py
Class Name: ConfusionMatrix
Method Name: plot
Project Name: oddt/oddt
Commit Name: 9c90d0a3c85e6ce7b81df471c8e150d025058832
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol
Project Name: ylongqi/openrec
Commit Name: 93f84bee4d0c9e082c5ef04fa5f4a0886cdad2db
Time: 2018-09-26
Author: ylongqi@gmail.com
File Name: openrec/recommenders/recommender.py
Class Name: Recommender
Method Name: _optimistic_restore