-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add a method to add the quantiles in a timseseries graph #124
Comments
Short question, where is the time in the data? |
Oh, it is a YearMonth object, of the first series, and then there is a String that represents the frequency, so for example So if you want to do it generic enough, I would say not using |
I think it is right, I compare this graph with the one I passed which is using the same dataset, and the green part is similar to this one, when I call the quantile function it returns what I showed you, not relative to the mean but the absolute number. Look the method I call for returning the array I pasted before is coming from |
There is one more question which is, how do I figure out the time of the prediction? It is just a set of numbers. At the moment I just moved the data manually to overlay the prediction. |
It is the same elapsed of time as the original set. So if from target data1 to data2 is 1 month, then in the prediction from pred1 to pred2 is also 1 month. So in this case if there are 12 numbers in the prediction is 12 months |
Could you provide the data for all 3 predictions with their start timestamp and the time step between the datapoints. And also the start timestamp for the target data? I would like to recreate the complete chart. 😁 |
Initial date for target: 1949-01 Target values: Initial date of prediction: 1961-01 Quantiles: ==== Quantile 50% =====
|
I will implement the prediction as overlays to a line chart, meaning to say you will be able to add multiple predictions to an existing line chart. |
Oh that's great
Missatge de Gerrit Grunwald ***@***.***> del dia dv., 12
d’abr. 2024 a les 13:37:
… I will implement the prediction as overlays to a line chart, meaning to
say you will be able to add multiple predictions to an existing line chart.
—
Reply to this email directly, view it on GitHub
<#124 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALSMYK6GWHPYWGSA5YKVQ3Y47BOJAVCNFSM6AAAAABGCB2Q66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGU4TCMBWHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
oh btw I will write an article for Red Hat Developers Blog about your
library, so maybe you can expect an increase of traffic :P
Missatge de Alex Soto ***@***.***> del dia dv., 12 d’abr. 2024 a les
13:41:
… Oh that's great
Missatge de Gerrit Grunwald ***@***.***> del dia dv., 12
d’abr. 2024 a les 13:37:
> I will implement the prediction as overlays to a line chart, meaning to
> say you will be able to add multiple predictions to an existing line chart.
>
> —
> Reply to this email directly, view it on GitHub
> <#124 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AALSMYK6GWHPYWGSA5YKVQ3Y47BOJAVCNFSM6AAAAABGCB2Q66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGU4TCMBWHE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Oh looks great. I don't have them as my prediction was for only 12 months. And the model I am using is trained only for 12 months. If you want to try with more, I'd suggest copying and pasting the previous ones. I know it does not make much sense from the point of view of AI, but for display, I think it is ok. |
As we talked about in DevNexus, I'd love to plot some time series where I set the mean and the quantiles. What I've got is an array of floats for each part, here I pasted you a real example.
The
target
is the real values (so it is the past) and should be plotted from the initial of the graph until one point after that point, when the prediction starts. The prediction is the array of the mean prediction, which is the main line, and then two quantiles.Python does this, and the output graph looks like this:
https://d2kv9n23y3w0pn.cloudfront.net/static/README/forecasts.png
It's not necessary to be the same. Also notice that in that graph there is 3 predictions, in my case with only one prediction is enough
:)
The text was updated successfully, but these errors were encountered: