Automation/storing multiple prediction results #939
Unanswered
antonkiselevtdg
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Please state your question in the title, and add here any relevant details,
like a description of the problem, code snippets, examples, and so on.)
Good day,
could you please help me with the following question:
I am experimenting with forecasting sales for multiple product IDs.
I have created a list of product IDs, so I can run a for loop.
However, as soon as I get to the following:
predictions = list(predictor.predict(test_data))
predictions[0].samples
predictions[0].quantile(0.5)
I am only getting the prediction for the last element of my product ID list.
I have tried some solutions, for e.g. empty list and additional for loop to store the data in a list,
but as I can see - results are being overwritten and I can't store it.
Could you please tell - is there a way to store predictions when I need to run a model for multiple product IDs?
I can definitely create multiple separate predictions manually, for e.g. re-run the models separately and store results manually as predictions1,2,3...
I just wanted to understand if there is a way to automate prediction generation and collection for multiple variables.
Beta Was this translation helpful? Give feedback.
All reactions