lstm icon indicating copy to clipboard operation
lstm copied to clipboard

new dataset

Open KaaiLee opened this issue 7 years ago • 1 comments

if i want run the code in new dataset,and the data range not in [-1,1],what should i do?

KaaiLee avatar Sep 07 '17 12:09 KaaiLee

i want the anwser too. i do this like:

y_list = [1,-0.8333333333, 0.33333, 0.166666667, -0.8] ymax=np.max(np.abs(y_list))*1.2 y_list=y_list/ymax

other example:

from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler() scaler.fit(datos) datos = scaler.transform(datos) .............. real_tot_scl = scaler.inverse_transform(real_tot) pred_tot_scl = scaler.inverse_transform(pred_tot)

fmscole avatar Jun 19 '18 16:06 fmscole