Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__ (self):
- self.model = Sequential()
- self.model.add(Dense(4, input_shape=(4,), activation='linear'))
- self.model.compile(optimizer='adam', loss='mse')
- def run(self):
- x = [1., 1., 1., 1.]
- print('x:', x, 'x shape:', np.shape(x))
- y = [0., 0., 0., 0.]
- print('y:', y, 'y shape:', np.shape(y))
- self.model.fit(x, y, batch_size=1, epochs=1, verbose=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement