Skip to content

Instantly share code, notes, and snippets.

@kemaleren
kemaleren / line_profiler_code.py
Last active December 20, 2015 03:29
line profiler dumps for SpectralBiclustering and SpectralCoclustering on both dense and sparse matrices.
from sklearn.datasets import fetch_20newsgroups_vectorized
from sklearn.datasets import make_checkerboard
from sklearn.datasets import make_biclusters
from sklearn.cluster.bicluster import SpectralBiclustering
from sklearn.cluster.bicluster import SpectralCoclustering
newsgroups = fetch_20newsgroups_vectorized()
# Spectral Co-Clustering
@kemaleren
kemaleren / bimax.py
Created September 13, 2013 05:58
An implementation of the BiMax biclustering algorithm by Prelic, et. al. (2006).
"""Implements the BiMax biclustering algorithm.
Authors : Kemal Eren
License: BSD 3 clause
"""
import numpy as np
class BiMax():
#!/usr/bin/env bash
set -ue
if ! command -v xdotool &> /dev/null; then
printf "You need to install xdotool.\n" 1>&2
exit 1
fi
output="$(pass $@)"