This file contains 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
<html> | |
<meta charset='utf-8'> | |
<head> | |
</head> | |
This file contains 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
var boston_record = [ | |
['home', 'win'], | |
... | |
['away', 'loss'], | |
]; | |
d3.select('#second-wrapper-main') | |
.selectAll('div') | |
.data(boston_record) | |
.enter().append('div') |
This file contains 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 numpy as np | |
import pandas as pd | |
import statsmodels.formula.api as sm #lin reg | |
import pylab as py | |
import matplotlib as mp | |
from sklearn.tree import DecisionTreeRegressor | |
from sklearn.ensemble import ExtraTreesRegressor | |
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.ensemble import GradientBoostingClassifier, GradientBoostingRegressor |
This file contains 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 numpy as np | |
import pandas as pd | |
import statsmodels.formula.api as sm #lin reg | |
import pylab as plt | |
import matplotlib as mp | |
from sklearn.linear_model import Lasso | |
from sklearn.linear_model import LassoCV | |
from sklearn.linear_model import lasso_path, enet_path |
This file contains 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 numpy as np | |
import pandas as pd | |
import statsmodels.formula.api as sm #lin reg | |
import pylab as py | |
import matplotlib as mp | |
from sklearn.tree import DecisionTreeRegressor | |
from sklearn.ensemble import ExtraTreesRegressor | |
from sklearn.ensemble import RandomForestRegressor |
This file contains 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
#Kaggle competition | |
import numpy as np | |
import pandas as pd | |
import statsmodels.formula.api as sm #lin reg | |
import pylab as py | |
%pylab qt | |
#create graphs |
This file contains 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
library(caTools) | |
library(caret) | |
library(Amelia) | |
data.dir <- "/Documents/Data\ Science/Kaggle/Bike\ Sharing\ Demand/" | |
train.file <- paste0(data.dir, "train.csv") | |
test.file <- paste0(data.dir, "test.csv") | |
bk <- read.csv(train.file) |