Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Star it. Fork it. Solve it.

Pradeep Reddy Raamana raamana

💭
Star it. Fork it. Solve it.
View GitHub Profile
View pypi-release-checklist.md
  • 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 Sep 13, 2017
Code to reproduce grid search freeze
View gridsearch_debug_snippet.py
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 Aug 17, 2017 — forked from alimuldal/nemenyi.py
Implementation of Nemenyi's multiple comparison test, following a Kruskal-Wallis 1-way ANOVA
View nemenyi.py
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 Aug 8, 2016
Test cases for reproducing joblib's memmap bug (in the context of scikit-learn's k-fold CV)
View gist:382927a527c87746b1ef
#!/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)
You can’t perform that action at this time.