Skip to content

Instantly share code, notes, and snippets.

View muthmano-dev's full-sized avatar
:octocat:

muthmano muthmano-dev

:octocat:
  • Gainesville, Florida, United States
View GitHub Profile

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

#### linear regression
import numpy as np
import pandas as pd
import os
os.chdir("/Users/shuozhang/Desktop/data")
nycmodel=pd.read_csv('nycmodeldata.csv', sep='\t', index_col=False, dtype={'zipcode':'S10'})
import statsmodels.api as sm
add_dummies = pd.get_dummies(nycmodel['zipcode'])
add_dummies=add_dummies.applymap(np.int)
@muthmano-dev
muthmano-dev / cvdiff.py
Created May 12, 2017 13:00 — forked from vgoklani/cvdiff.py
Sklearn GridSearchCV vs. CrossValidation
from sklearn.linear_model import SGDClassifier
from sklearn import cross_validation
from sklearn import metrics
from sklearn.grid_search import GridSearchCV
from sklearn.datasets import load_iris
data = load_iris()
sample_vector = data.data
targets = data.target