Skip to content

Instantly share code, notes, and snippets.

View dthboyd's full-sized avatar

David Boyd dthboyd

  • Dthboyd
  • Toronto
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dthboyd
dthboyd / roc.ipynb
Created April 17, 2018 00:09 — forked from anonymous/roc.ipynb
ROC random forest
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dthboyd
dthboyd / caseWhen2.ipynb
Created August 4, 2018 01:31 — forked from heyrudder/caseWhen2.ipynb
How to do an IF / CASE statement in Pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
model = XGBClassifier(silent=False,
scale_pos_weight=1,
learning_rate=0.01,
colsample_bytree = 0.4,
subsample = 0.8,
objective='binary:logistic',
n_estimators=1000,
reg_alpha = 0.3,
max_depth=4,
gamma=10)
@dthboyd
dthboyd / ML_for_Balancing.ipynb
Created August 11, 2018 17:41
Machine Learning for Game Balancing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
import missingno
import warnings
warnings.filterwarnings("ignore")
%matplotlib inline