mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
plot parties in mp plot
This commit is contained in:
@@ -219,9 +219,9 @@ ys, xs = np.unravel_index(np.argmax(X, axis=1), (h, w))
|
|||||||
ys_disp = ys + np.random.rand(ys.shape[0])
|
ys_disp = ys + np.random.rand(ys.shape[0])
|
||||||
xs_disp = xs + np.random.rand(xs.shape[0])
|
xs_disp = xs + np.random.rand(xs.shape[0])
|
||||||
|
|
||||||
|
party_index_mapping, party_affiliation_numeric = np.unique(data[:,1], return_inverse=True)
|
||||||
|
|
||||||
# TODO: fix color
|
plot_mps(fig, ax, ys_disp, xs_disp, data[:,0] + " (" + data[:,1] + ")", party_affiliation_numeric)
|
||||||
plot_mps(fig, ax, ys_disp, xs_disp, data[:,0], np.random.rand(X.shape[0]))
|
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
#Simple SOFM for UK
|
#Simple SOFM for UK
|
||||||
|
|||||||
Reference in New Issue
Block a user