Skip to content
Snippets Groups Projects
Commit 0a40a95c authored by Dennis Noll's avatar Dennis Noll
Browse files

[plotting] used fixef numpy/one_hot

parent 2abc0d22
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ def figure_node_activations(
for process in range(n_p):
if disjoint:
max_activations = np.argmax(activations, axis=-1)
one_hot_max_activations = one_hot(max_activations)
one_hot_max_activations = one_hot(max_activations, n=n_p)
values = (activations * one_hot_max_activations)[truth[:, process]].swapaxes(0, 1)
values[values == 0] = -10000
else:
......
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