Created
March 8, 2021 02:41
-
-
Save zronaghi/0d63f3d7cadcd40a45476d8aea0915cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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