Last active
November 10, 2017 15:59
-
-
Save cicdw/ec4b39ff036049e0b82a7cf9fb64eeef to your computer and use it in GitHub Desktop.
Code Snippets for Medium blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def predict_over_time(x, y, z, overlay=False): | |
"Predicts a quantity at times = 0, 1, ... 14" | |
out = np.zeros((x.shape[0], 15)) | |
for t in range(15): | |
out[:, t] = t * x ** 2 + y - 2 * z - 2 * t | |
adj = 1.5 if overlay else 1.0 | |
return adj * out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment