fix cosdense tests

This commit is contained in:
farizrahman4u
2017-03-19 09:35:27 +05:30
parent 1656006c05
commit 0685fd9a03
+2 -2
View File
@@ -41,7 +41,7 @@ def test_cosinedense():
X = np.random.randn(1, 20)
model = Sequential()
model.add(core.CosineDense(1, bias=True, input_shape=(20,)))
model.add(core.CosineDense(1, use_bias=True, input_shape=(20,)))
model.compile(loss='mse', optimizer='rmsprop')
W = model.get_weights()
W[0] = X.T
@@ -52,7 +52,7 @@ def test_cosinedense():
X = np.random.randn(1, 20)
model = Sequential()
model.add(core.CosineDense(1, bias=False, input_shape=(20,)))
model.add(core.CosineDense(1, use_bias=False, input_shape=(20,)))
model.compile(loss='mse', optimizer='rmsprop')
W = model.get_weights()
W[0] = -2 * X.T