You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Normalize F-matrices
if norm == "abs":
print("[data loader] Use max abs value to normalize the F-matrix")
Y = Y / (np.abs(Y).max(axis=1)[:,np.newaxis] + 1e-8)
elif norm == "norm":
print("[data loader] Use L2 norm to normalize the F-matrix")
Y = Y / (np.linalg.norm(Y, axis=1)[:,np.newaxis] + 1e-8)
elif norm == "last":
print("[data loader] Use last index to normalize the F-matrix")
Y = Y / (Y[:,-1].reshape(-1)[np.newaxis,1] + 1e-8)
else:
raise Exception("Unrecognized normalization methods:%s"%norm)
Which normalization is used by default in the paper?
The text was updated successfully, but these errors were encountered:
Which normalization is used by default in the paper?
The text was updated successfully, but these errors were encountered: