Для конкретного примера приведем некоторый код:
input1 = Input(shape = (3,2))
x1 = LSTM(8)(input1)
x1 = Flatten()(x1)
x1 = Dense(10)(x1)
input2 = Input(shape = (3,2))
x2 = LSTM(8)(input2)
x2 = Flatten()(x2)
x2 = Dense(10)(x2)
x = concatenate([x1, x2])
y = Dense(1)(x)
model = Model([input1, input2], y)
model.compile(optimizer='Adam',
loss='mean_squared_error')
Можно ли использовать генератор Keras для оснащения этой модели двумя numpy массивами?
Например
X1 = np.random.randn((100, 2))
X2 = np.random.randn((100, 2))