Skip to content

Instantly share code, notes, and snippets.

@chrishokamp
chrishokamp / mlp.py
Created March 24, 2014 19:46 — forked from amueller/mlp.py
import numpy as np
import warnings
from itertools import cycle, izip
from sklearn.utils import gen_even_slices
from sklearn.utils import shuffle
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from sklearn.preprocessing import LabelBinarizer