Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new dataset #29

Open
KaaiLee opened this issue Sep 7, 2017 · 1 comment
Open

new dataset #29

KaaiLee opened this issue Sep 7, 2017 · 1 comment

Comments

@KaaiLee
Copy link

KaaiLee commented Sep 7, 2017

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

@fmscole
Copy link

fmscole commented Jun 19, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants