Skip to content

Instantly share code, notes, and snippets.

View jnlaia's full-sized avatar

João N. Laia jnlaia

  • Munich, Germany
View GitHub Profile
@jnlaia
jnlaia / script.py
Created December 9, 2015 14:00
keras MLP script to show different results between versions
import keras
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation
from keras.optimizers import SGD
from keras.wrappers.scikit_learn import KerasClassifier
import numpy as np
def target2classes(y):