Skip to content

Instantly share code, notes, and snippets.

View raamana's full-sized avatar
💭
Star it. Fork it. Solve it.

Pradeep Reddy Raamana raamana

💭
Star it. Fork it. Solve it.
View GitHub Profile
@raamana
raamana / pypi-release-checklist.md
Created October 6, 2017 04:21 — forked from audreyfeldroy/pypi-release-checklist.md
My PyPI Release Checklist
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@raamana
raamana / gridsearch_debug_snippet.py
Created September 13, 2017 12:50
Code to reproduce grid search freeze
import sys
import timeit
from os.path import join as pjoin
import logging
import traceback
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.feature_selection import mutual_info_classif, SelectKBest
from sklearn.model_selection import GridSearchCV, ShuffleSplit
@raamana
raamana / nemenyi.py
Created August 17, 2017 14:13 — forked from alimuldal/nemenyi.py
Implementation of Nemenyi's multiple comparison test, following a Kruskal-Wallis 1-way ANOVA
import numpy as np
from scipy import stats
from itertools import combinations
from statsmodels.stats.multitest import multipletests
from statsmodels.stats.libqsturng import psturng
import warnings
def kw_nemenyi(groups, to_compare=None, alpha=0.05, method='tukey'):
"""
@raamana
raamana / gist:382927a527c87746b1ef
Last active August 8, 2016 19:29
Test cases for reproducing joblib's memmap bug (in the context of scikit-learn's k-fold CV)
#!/usr/bin/env python
import sys
# from joblib import Parallel, delayed
from sklearn.externals.joblib import Parallel, delayed
from sklearn.model_selection import KFold
import numpy as np
def overlapping(test, train):
# print('test : %s' % test)