Problems about the Operator "Loop"
Hi guys, I am working on a Financial Time Series Model which tries to predict the accurate stock values (I know that's nearly impossible but I will still give it a try )
I am now stuck on the "Loop" operator because of the following result. The prediction result is just a continous repeat of the first forecasted value, and the date is wrong (The last date of my inputed data should be 19/09/16, but it turns out the predicted date starts from 10/07/17).
Inside my loop, I have put -
1. Apply Model
2. Generate Attributes
(The Generated Attribute would be : Date date_add(Date,eval(%{loop_forecasts}),DATE_UNIT_DAY))
3. Set Role
4. Select Attribute (The value that I would like to predict)
5. Replace (with iteration: %(futureDays))
May I know which part of my process may have gone wrong? And any solutions for solving this problem?
Thanks !
Answers
I fixed that loop error and cleaned up the process a bit.