tested other colorscheme
This commit is contained in:
parent
c4f90ff281
commit
7ef99b5811
@ -1,5 +1,6 @@
|
|||||||
from ..util.data_loader import LabelConverter
|
from ..util.data_loader import LabelConverter
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
import matplotlib.colors as colors
|
||||||
import time
|
import time
|
||||||
import torch
|
import torch
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -141,8 +142,7 @@ class EpochTracker:
|
|||||||
label_names = self.labels.get_labels()
|
label_names = self.labels.get_labels()
|
||||||
|
|
||||||
fig, ax = plt.subplots(layout="tight")
|
fig, ax = plt.subplots(layout="tight")
|
||||||
|
im = ax.imshow(normalized_predictions, cmap='Blues') # cmap='BuPu', , norm=colors.PowerNorm(1./2.)
|
||||||
im = ax.imshow(normalized_predictions, cmap='Blues') # cmap='BuPu'
|
|
||||||
ax.set_xticks(np.arange(N))
|
ax.set_xticks(np.arange(N))
|
||||||
ax.set_yticks(np.arange(N))
|
ax.set_yticks(np.arange(N))
|
||||||
ax.set_xticklabels(label_names)
|
ax.set_xticklabels(label_names)
|
||||||
|
Loading…
Reference in New Issue
Block a user