Skip to content

Instantly share code, notes, and snippets.

@zronaghi
Created March 8, 2021 02:41
Show Gist options
  • Save zronaghi/0d63f3d7cadcd40a45476d8aea0915cf to your computer and use it in GitHub Desktop.
Save zronaghi/0d63f3d7cadcd40a45476d8aea0915cf to your computer and use it in GitHub Desktop.
import requests
import xgboost as xgb
import time
SVMURL = 'https://gmao.gsfc.nasa.gov/gmaoftp/geoscf/gc-xgb/svm'
ifile = 'gcxgb_example_train.svm'
urlfile = '/'.join([SVMURL,ifile])
r = requests.get(urlfile)
open(ifile, 'wb').write(r.content)
train = xgb.DMatrix(ifile)
Y_train = train.get_label()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment