-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not understanding the prediction results for the example application #4
Comments
Hi, Could you provide the python version you're using, as well as the versions of |
Thank you for your quick response. Here are the versions you requested. python3 --version print('The numpy version is {}.'.format(np.version)) print('The scikit-learn version is {}.'.format(sklearn.version)) |
Hi, It is working now. I made no changes to the example I just ran it with different step ahead values and noticed it started working. Several questions:
Code used plt.style.use("dark_background") t_series = np.array([112, 118, 132, 129, 121, 135, 148, 148, 136, 119, 104, 118, psf = Psf(cycle_length=12, apply_diff=True, diff_periods=12) pred = psf.predict(len(test)) fig, ax = plt.subplots() print("test", test) plt.show() Thanks |
Forgot to include the prediction log data. 28 steps ahead pred [427.5 370.5 329.5 364. 371.5 348.5 399.5 396. 404. 473. 539. 547. 12 steps ahead pred [427.5 370.5 329.5 364. 371.5 348.5 399.5 396. 404. 473. 539. 547. ] 50 steps ahead pred [427.5 370.5 329.5 364. 371.5 348.5 399.5 396. 404. 473. 539. 547. 10 steps ahead pred [427.5 370.5 329.5 364. 371.5 348.5 399.5 396. 404. 473. ] 30 steps ahead pred [427.5 370.5 329.5 364. 371.5 348.5 399.5 396. 404. 473. 539. 547. |
Great to hear you made it work! Regarding your questions:
|
Hi,
When I run the example application I do not understand the prediction results. The test data and prediction results are the same. I was looking for the prediction results array to have some of values greater for steps ahead than the test array. Listed are the test, prediction and x_test_pred arrays after the application run for 28 steps ahead prediction.
Thanks
Wilbert Jackson
/home/wilbert/PyPSF/pypsf/psf.py:149:UserWarning:
Prediction horizon 28 is not multiple of 12. Using 36 as intermediate prediction horizon!
pred [[404]
[359]
[310]
[337]
[360]
[342]
[406]
[396]
[420]
[472]
[548]
[559]
[463]
[407]
[362]
[405]
[417]
[391]
[419]
[461]
[472]
[535]
[622]
[606]
[508]
[461]
[390]
[432]]
test [[404]
[359]
[310]
[337]
[360]
[342]
[406]
[396]
[420]
[472]
[548]
[559]
[463]
[407]
[362]
[405]
[417]
[391]
[419]
[461]
[472]
[535]
[622]
[606]
[508]
[461]
[390]
[432]]
x_test_pred [115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
133 134 135 136 137 138 139 140 141 142]
The text was updated successfully, but these errors were encountered: