Getting started with XGBoost
This is a simple example of using the native XGBoost interface, there are other interfaces in the Python package like scikit-learn interface and Dask interface.
See Python Package Introduction and XGBoost Tutorials for other references.
import os
import pickle
import numpy as np
from sklearn.datasets import load_svmlight_file
import xgboost