CAPTCHA-breaking icon indicating copy to clipboard operation
CAPTCHA-breaking copied to clipboard

nb_model.add(Convolution2D(32, 1, 4, border_mode='full', activation='relu', W_regularizer=l2(weight_decay)))报错

Open xaiomoqing opened this issue 7 years ago • 1 comments

您好大神,现在无法运行,是因为keras版本跟新的问题么? TypeError: Layer can receive at most 3 positional arguments. ValueError: The padding argument must be one of "valid", "same" (or "causal" for Conv1D). Received: full 小白不太懂,请问怎么修改呢?

xaiomoqing avatar Jan 23 '18 06:01 xaiomoqing

这个确实是版本问题,建议根据keras新api重新搭建模型。

lllcho avatar Jan 23 '18 14:01 lllcho