mirror of
https://github.com/13hannes11/UU_NCML_Project.git
synced 2024-09-03 20:50:59 +02:00
Bug fix: data used for plotting is corrected
This commit is contained in:
@@ -250,7 +250,7 @@ prediction = sofmnet.predict(X)
|
||||
print(f'prediction: {prediction}')
|
||||
|
||||
# converting to x and y coordinates
|
||||
ys, xs = np.unravel_index(np.argmax(X, axis=1), (h, w))
|
||||
ys, xs = np.unravel_index(np.argmax(prediction, axis=1), (h, w))
|
||||
|
||||
# plotting mps
|
||||
plot_mps(data[:,0], xs, ys, data[:,1])
|
||||
@@ -305,7 +305,7 @@ prediction = sofmnet.predict(X)
|
||||
print(f'prediction: {prediction}')
|
||||
|
||||
# converting to x and y coordinates
|
||||
ys, xs = np.unravel_index(np.argmax(X, axis=1), (h, w))
|
||||
ys, xs = np.unravel_index(np.argmax(prediction, axis=1), (h, w))
|
||||
|
||||
# plotting mps
|
||||
plot_mps(data[:,0], xs, ys, data[:,1])
|
||||
|
||||
Reference in New Issue
Block a user