// test with Sequential model
model = Sequential()
model.add(wrappers.Bidirectional(rnn(3), merge_mode=mode, input_shape=(3, 2)))
model.add(core.Activation("sigmoid"))
model.compile(loss="mse", optimizer="sgd")
model.fit(x, y, nb_epoch=1, batch_size=5)
After Change
model.fit(x, y, nb_epoch=1, batch_size=1)
// test config
model.get_config()
model = model_from_json(model.to_json())
model.summary()
// test stacked bidirectional layers