Created
January 3, 2018 07:23
-
-
Save theSage21/06001f951acbcd92d68deb87e9ec0fad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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