history = model.fit(X, y, batch_size=32, epochs=40, validation_split=0.1)
线路问题是这样的
显示错误:
ValueError: Failed to find data adapter that can handle input: <class 'numpy.ndarray'>, (<class 'list'> containing values of types {"<class 'int'>"})
原文由 Neo 发布,翻译遵循 CC BY-SA 4.0 许可协议
我遇到了同样的问题。原来是列表形式的。我不得不将字段转换成一个 numpy 数组,例如:
而已!