harimkang / LSTM-Prediction

LSTM Prediction for time series data (jean sales data set) using matlab
MIT License
54 stars 8 forks source link

STANDARDIZATION #2

Open s-tete opened 1 year ago

s-tete commented 1 year ago

Why are you using the mean and standard deviation of the training set to standardize the testing set in ln 61

harimkang commented 1 year ago

Why are you using the mean and standard deviation of the training set to standardize the testing set in ln 61

Hi @s-tete, thanks for creating issue, This is because the same regularization process applied to the training set should be applied to the test, so that the network can make predictions in the same space. This assumes that the test and train sets are somewhat related.