mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
adding alpha to heatmap to reduce contrast
This commit is contained in:
@@ -59,7 +59,7 @@ def predict(model, data, grid_h, grid_w, comparison_data=pd.DataFrame()):
|
||||
plt.figure()
|
||||
weight = model.weight.reshape((model.n_inputs, grid_h, grid_w))
|
||||
heatmap = compute_heatmap(weight, grid_h, grid_w)
|
||||
plt.imshow(heatmap, cmap ='Blues', interpolation='nearest',zorder=1)
|
||||
plt.imshow(heatmap, cmap ='Blues', interpolation='nearest',zorder=1, alpha=0.5)
|
||||
plt.axis('off')
|
||||
plt.colorbar()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user