如何修复“模块”对象无法调用

时间:2019-07-18 06:11:24

标签: python machine-learning deep-learning computer-vision

我正在进行深度学习,为此,我正在使用一种算法来训练我的数据集。因此,这就是我在运行代码期间获得的全部内容。您能帮我找出我缺少的地方吗?

TypeError                                 Traceback (most recent call last)
    <ipython-input-20-70463f35b888> in <module>
         45 #merge two encoded inputs with the l1 distance between them
         46 L1_distance = lambda x: K.abs(x[0]-x[1])
    ---> 47 both = merge([encoded_l,encoded_r], mode = L1_distance, output_shape=lambda x: x[0])
         48 prediction = Dense(1,activation='sigmoid',bias_initializer=b_init)(both)
         49 siamese_net = Model(input=[left_input,right_input],output=prediction)

    TypeError: 'module' object is not callable

0 个答案:

没有答案