Skip to content

Instantly share code, notes, and snippets.

@omarsar
Created August 13, 2018 07:12
Show Gist options
  • Save omarsar/1b1269a2f7ce9f03778b4ab631877ac1 to your computer and use it in GitHub Desktop.
Save omarsar/1b1269a2f7ce9f03778b4ab631877ac1 to your computer and use it in GitHub Desktop.
# scale units
X_max, _ = torch.max(X, 0)
xPredicted_max, _ = torch.max(xPredicted, 0)
X = torch.div(X, X_max)
xPredicted = torch.div(xPredicted, xPredicted_max)
y = y / 100 # max test score is 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment