Skip to content

Instantly share code, notes, and snippets.

Spencer spencercarter

Block or report user

Report or block spencercarter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
spencercarter /
Last active Jan 28, 2018
Sample code to create silent permission failure in xgboost 0.4
import xgboost as xgb
import numpy as np
from subprocess import call
# Initialize
X = np.random.normal(size=[10, 5])
y = np.random.randint(0,2,10)
dtrain = xgb.DMatrix(X, label=y)
# Model
spencercarter /
Last active Nov 16, 2018
Gists containing code to run the Models as a Web Service blog post
# Part 1: Model
import sklearn as sk
import numpy as np
from sklearn.datasets import load_boston
from sklearn.linear_model import LassoCV
import pandas as pd
from flask import Flask
from flask import request
import requests
You can’t perform that action at this time.