Skip to content
Snippets Groups Projects
Commit e12236df authored by Markus Rothgänger's avatar Markus Rothgänger
Browse files

fix max norm

parent d4d9077e
No related branches found
No related tags found
No related merge requests found
......@@ -371,8 +371,10 @@ def visualize_sort_multidim(
ratings[i, m] = rating
if max_norm:
mins = ratings.min(dim=0)
maxs = ratings.max(dim=0)
ratings[:] /= maxs.values
ratings[:] -= mins.values
ratings[:] /= maxs.values - mins.values
if n_dim == 3:
fig = plt.figure()
......
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