Skip to content

Instantly share code, notes, and snippets.

View amueller's full-sized avatar

Andreas Mueller amueller

View GitHub Profile
@amueller
amueller / reassignment_strageties.ipynb
Created December 24, 2013 14:33
Benchmarking differente minibatch reassignment stategies.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amueller
amueller / msrc_blog.ipynb
Last active October 25, 2016 07:04
ipython notebook for msrc segmentation tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amueller
amueller / bcfw_dual_test.py
Created September 23, 2013 08:21
bcfw dual
import numpy as np
#from sklearn.datasets import fetch_mldata
from sklearn.datasets import load_digits
from pystruct.models import MultiClassClf
from pystruct.learners import FrankWolfeSSVM, SubgradientSSVM, NSlackSSVM, OneSlackSSVM
from pystruct.utils import AnalysisLogger
from sklearn.utils import shuffle
@amueller
amueller / colors_curves.png
Last active April 20, 2024 01:38
random color palette using halton codes
colors_curves.png
@amueller
amueller / checkerboard.png
Last active December 22, 2015 07:19
explain what I mean by checker board
checkerboard.png
@amueller
amueller / graph.ad3
Last active December 19, 2015 03:39
A pairwise factor graph that has strange behavior in ad3 branch and bound
28
105
0.232269334
0.767730666
0.30221087
0.69778913
0.260731565
0.739268435
0.461288309
0.538711691
@amueller
amueller / km_test.py
Last active December 14, 2015 05:18
simple kmeans test with n_jobs=2
from sklearn.cluster import KMeans
from sklearn.datasets import make_blobs
X, y = make_blobs()
KMeans(n_jobs=2).fit(X)
print("done")
@amueller
amueller / Diagram1.dia
Last active August 18, 2022 05:03
Machine learning cheat sheet diagram svg and dia file
@amueller
amueller / msrc_svm.py
Created January 15, 2013 19:10
Linear SVM on Aurelien's MSRC features
import os
from glob import glob
import numpy as np
import matplotlib.pyplot as plt
from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score, confusion_matrix
@amueller
amueller / regressions.txt
Last active December 11, 2015 01:38
regressions in 0.13-git
======================================================================
FAIL: Check that oob prediction is as acurate as
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/andy/sklearn_tests/sklearn/ensemble/tests/test_forest.py", line 198, in test_oob_score_classification
assert_almost_equal(training_score, clf.oob_score_)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
raise AssertionError(msg)