Skip to content

Commit

Permalink
Merge pull request #63 from TheRealGremlin/patch-10
Browse files Browse the repository at this point in the history
Update api.py
  • Loading branch information
tanyapole authored Jan 9, 2024
2 parents c6107ff + 6c14727 commit 021c2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eXNN/visualization/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def visualize_recurrent_layer_manifolds(
df = df.iloc[::arr_reducer, :]
if heatmap is True:
labels_noncat = labels
if labels.dim() > 1 and labels.shape[labels.dim() - 1] > 1:
if labels.ndim > 1 and labels.shape[labels.ndim - 1] > 1:
labels_noncat = np.argmax(labels_noncat, axis=1)
center = np.zeros((len(np.unique(labels_noncat)), 3))
med_dist = np.zeros((len(np.unique(labels_noncat)), len(np.unique(labels_noncat))))
Expand Down

0 comments on commit 021c2dd

Please sign in to comment.