last day (21 days later) » 

10:24 PM
1
Q: I wonder if I was right about the implement of lstm layer using keras

GoBackesshere is my code model = Sequential() model.add(LSTM(i, input_shape=(None, 1), return_sequences=True)) model.add(Dropout(l)) model.add(LSTM(j)) model.add(Dropout(l)) model.add(Dense(k)) model.add(Dropout(l)) model.add(Dense(1)) and here is result p = model.predict(x_test) plt.plot(y_test) p...

 
could you provide an example of your data? if this is correct model.predict(x_test) then this is incorrect model.predict(x_test[-1]).
what do you mean by "the value of the next data"?
 
I have test data and using test dataset, I want to predict next day close value
docs.google.com/spreadsheets/d/… here is my dataset and I use only close data
 
The model is not predicting a sequence. It only predicts one number. Oddly, your plot doesn't match any of the values. it seems you are plotting values between [0,1] but your sample data is not like this...
 
Because I preprocessed it. scaler = MinMaxScaler(feature_range=(0, 1))
 
the reason I ask for the data is to understand the question. It is definitely possible to get such accuracy if the degree of freedom is limited in feature space.
hello
 
10:25 PM
hi
do you want to full source?
 
I still don't know the input outputs. are you taking a sequence of logs and predicting the next "something"?
 
input is kospi index 'close' data
by training the model and I want to know next day's 'close' data
 
aha, so you pass the sequence of previous days leading to the next day. and the only feature is "Close" column. the prediction is also another the "Close" column
 
"aha, so you pass the sequence of previous days leading to the next day. and the only feature is "Close" column." yes I want using previous day close data and predict next Close data
the prediction is also another the "Close" column is i can't translate sorry hard to me understand
I think you understand my think
How can I ask questions that people understand?

Others also do not understand the meaning of "how to get the value of the next data."
 
10:40 PM
this could work for last test data to predict the next output: a = x_test[:-1]
sorry I meant this: a = x_test[-1:]
 
10:57 PM
thank you If you don't mind, I'll ask you a few questions.

1) Is the implementation right way?

2) How can I ask questions that people understand? Others also do not understand the meaning of "how to get the value of the next data."
 
I don't think the results are surprising. You are probably not getting very good results here. It seems your code is alright, and the results are legit. but you need a baseline to check the accuracy. I created this sheet to show you that without LSTM you can get pretty good results: docs.google.com/spreadsheets/d/…
 
Thank you for your concern for me.
However, since I have no statistical background, I try to make a prediction using only LSTM. Such quantitative analysis or indicators do not help me.
I do not know how to use the Normalized, Delta, Range and Delta p-random.
 
ok, It seems to me that your code is correct. if we could pin a specific question fitting the stackflow spirit in it I could help more.
 
How can I ask questions on stackoverflow that people understand? Others also do not understand the meaning of "how to get the value of the next data."

My English ability is insufficient and it is difficult to know where the meaning is wrong.
 
11:16 PM
you're doing very well :)
 
Thank you very much for your help in time.
 

  last day (21 days later) »