Skip to content

Instantly share code, notes, and snippets.

@theSage21
Created January 3, 2018 07:23
Show Gist options
  • Save theSage21/06001f951acbcd92d68deb87e9ec0fad to your computer and use it in GitHub Desktop.
Save theSage21/06001f951acbcd92d68deb87e9ec0fad to your computer and use it in GitHub Desktop.
from keras import layers as L
from keras import models as M
inputs = L.Input((4, ))
output = L.Dense(3)(inputs)
model = M.Model(inputs, outputs)
model.compile('sgd', 'mse')
import numpy as np
x = np.random.random((5, 4))
y = np.random.random((5, 3))
model.fit(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment