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

how to revert pred values to normal? #2

Open
jitendra5984 opened this issue Feb 23, 2018 · 0 comments
Open

how to revert pred values to normal? #2

jitendra5984 opened this issue Feb 23, 2018 · 0 comments

Comments

@jitendra5984
Copy link

Hi
Can you please help with scale back those prediction value function?

I tried this but values are bit different
Note: made preprocessor as global variable

def normalize_data(x, y):
global preprocessor
linear_x = x.reshape((x.shape[0], x.shape[1] * x.shape[2]))
#print("x.shape", x.shape)
#print("linear_x.shape", linear_x.shape)
xy = np.c_[ linear_x, y, y, y, y, y, y]
#print("xy.shape", xy.shape)
xy_scaled = preprocessor.inverse_transform(xy, copy=True)
#print("xy_scaled.shape", xy_scaled.shape)
#print(xy_scaled[:, -1].tolist())

return xy_scaled[:, -1].tolist()

Will be waiting for your reply

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

1 participant