Skip to content

Instantly share code, notes, and snippets.

@zronaghi
Created March 8, 2021 02:52
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 zronaghi/b570581ece653464cfcd8da413b0e1ed to your computer and use it in GitHub Desktop.
Save zronaghi/b570581ece653464cfcd8da413b0e1ed to your computer and use it in GitHub Desktop.
Xall = obsl.merge(model,how='inner',on='ISO8601')
Yall = Xall['value'] - Xall['NO2']
...
train = xgb.DMatrix(data=Xtrain,label=Ytrain)
params = {'booster':'gbtree','tree_method':'gpu_hist'}
bst = xgb.train(params,train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment