Created
April 14, 2020 21:51
-
-
Save piEsposito/f4c5601fb8ca51733e3f35b7bf3dbf02 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
y = np.array(df.Close[-750:]).reshape(-1, 1) | |
under_upper = upper_bound_unscaled > y | |
over_lower = lower_bound_unscaled < y | |
total = (under_upper == over_lower) | |
print("{} our predictions are in our confidence interval".format(np.mean(total))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment