Skip to content

Instantly share code, notes, and snippets.

@SemantiveCode
Created December 18, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SemantiveCode/b10ff6e0a0bade7bcc06060ef7e518fe to your computer and use it in GitHub Desktop.
Save SemantiveCode/b10ff6e0a0bade7bcc06060ef7e518fe to your computer and use it in GitHub Desktop.
import numpy as np
def l2_norm(v, u):
return np.linalg.norm(v - u)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment