Skip to content
Snippets Groups Projects
Commit bde01c7f authored by vkarve2's avatar vkarve2
Browse files

Changed dimensions of Heatmap.

parent 573274ab
No related branches found
No related tags found
No related merge requests found
Multiplicative Algorithm/Images/Heatmap.png

54.3 KiB

...@@ -66,7 +66,7 @@ def Heatmap(W1, W2): ...@@ -66,7 +66,7 @@ def Heatmap(W1, W2):
Ro = np.corrcoef(W1.T,W2.T)[len(W1.T):,:len(W2.T)] Ro = np.corrcoef(W1.T,W2.T)[len(W1.T):,:len(W2.T)]
plt.imshow(Ro, cmap='hot', interpolation='nearest') plt.imshow(Ro, cmap='hot', interpolation='nearest')
plt.colorbar() plt.colorbar()
plt.title('Heatmap for correlation coefficients comparing two runs of W') plt.title('Heatmap for comparing two runs of W')
plt.xlabel('Columns of W1') plt.xlabel('Columns of W1')
plt.ylabel('Columns of W2') plt.ylabel('Columns of W2')
plt.savefig('Heatmap') plt.savefig('Heatmap')
...@@ -286,7 +286,7 @@ def permute_and_sort(W1, H1, W2, permute = False): ...@@ -286,7 +286,7 @@ def permute_and_sort(W1, H1, W2, permute = False):
if permute: if permute:
permutation, sigs, SIGS = find_permutation(W1, W2) permutation, sigs, SIGS = find_permutation(W1, W2)
else: else:
plt.figure(figsize = (10,10), dpi=200) plt.figure(figsize = (10,9), dpi=200)
Heatmap(W1, W2) Heatmap(W1, W2)
return W1, H1, W2, [] return W1, H1, W2, []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment