Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created October 20, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkotra/c1ef7e0bed5f1b7874f0c7ebe6f3ba95 to your computer and use it in GitHub Desktop.
Save jkotra/c1ef7e0bed5f1b7874f0c7ebe6f3ba95 to your computer and use it in GitHub Desktop.
pm_scaler = scaler.fit(data["pm2.5"].values.reshape(-1, 1))
predicted = pm_scaler.inverse_transform( np.array(predictions).reshape(-1, 1) )
infered = pd.DataFrame(data['pm2.5'].iloc[24:])
infered['Predicted'] = predicted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment