Binary classification using roll_time_series #841
-
Hopefully quick question about usage of roll_time_series with usage in stock data. Let's say I am just using the "close" column (which is the closing price of a stock) to make the question easier. I am using it as follows:
My questions are this:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Sorry for the late answer :-( But in principle you are correct: all feature calculators are always only computer in the data of a single ID and value. After the rolling, all data of a single window have the same id. So you should be fine, yes. |
Beta Was this translation helpful? Give feedback.
-
No problem at all! I greatly appreciate your work on an open-source library. I guess there are two ways to do it. If you have data like And if you want to make predictions on whether the stock will increase 5%, without lag columns, you would say that those features "date, close, and close median" for 01/01 would predict if tomorrow's price would jump or not. With lag columns, so you're features you pass to the predition are |
Beta Was this translation helpful? Give feedback.
-
I see, now it makes sense! Yes, looks good. I guess you have already seen our stock prediction notebooks on that? If you think it makes sense to add your method as another example feel free to do a PR :-) |
Beta Was this translation helpful? Give feedback.
No problem at all! I greatly appreciate your work on an open-source library. I guess there are two ways to do it.
If you have data like
date | close | close median
01/01/2012 | 10 | 10
And if you want to make predictions on whether the stock will increase 5%, without lag columns, you would say that those features "date, close, and close median" for 01/01 would predict if tomorrow's price would jump or not.
With lag columns, so you're features you pass to the predition are
close_t_1
andclose_median_t_1
you would predict if 01/01 would jump or not. I chose the latter because I also trackopen
data so it was easy for them to be together, but really it's just semantics.