Open shayandavoodii opened 2 years ago
Hi Shayan, how many sequences do you have for training, what you provide is only one sequence. N is the number of sequences and T is the length of each one. Feel free to share a sample of your training data and more information about data in general.
Hi, I have a sequence of Adjusted Close prices of the S&P 500 index over a while. So based on your clarification, I should set N=1
, T=<LENGTH_OF_DATA>
.
Yes. Absolutely. Just one question if you have only one sequence, then how do you do the training? ( are you training across observation or across time?) Thanks Manie
Sent from Yahoo Mail for iPhone
On Friday, April 22, 2022, 4:50 AM, Shayan @.***> wrote:
Hi, I have a sequence of Adjusted Close prices of the S&P 500 index over a while. So based on your clarification, I should set N=1, T=
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Yes. Absolutely. Just one question if you have only one sequence, then how do you do the training? ( are you training across observation or across time?) Thanks Manie Sent from Yahoo Mail for iPhone On Friday, April 22, 2022, 4:50 AM, Shayan @.> wrote: Hi, I have a sequence of Adjusted Close prices of the S&P 500 index over a while. So based on your clarification, I should set N=1, T=
. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>
I guess I do it across observation! Example:
train = df[:120]
test = df[120:]
Hi, I'm trying to use Auto_HMM to find upward and downward, and stable states of the stock's close prices time series. This model is supposed to learn to distinguish which period has an upward trend and which one has a downward trend and which hasn't a specific trend(rather monotonic). Below you can see the Adj Close Price data from S&P 500 index between '2010-07-01' and '2011-11-01'. Three periods are denoted by a line, each with a different color. I want to use this data to feed the HMM model and get the states according to periods. Here is what I have tried so far:
But I got this error:
Can you please help me? How can I achieve my goal?
The expected output in my case:
I expect HMM to find those three states(downward trend - monotonic period - upward trend).