但是,我一直收到这样的错误: RuntimeError:太多次构建模型的失败尝试我也尝试使用RandomSearch而不是BayesianOptimization,但仍然得到相同类型的错误。: Input 0 of layer lstm_1 is incompatible with the layer: expected ndim=3, found ndim=2.: Input 0 of layer lstm
我已经在here上搜索了关于这个错误的其他线程,但无法找出问题所在。我正在尝试使用具有两个预测值和三个结果的玩具数据集创建一个LSTM,将输出层设置为sigmoid,以便为每个结果标签提供介于0-1之间的概率。我的代码: import pandas as pdimport tensorflow as tf
d = {&