所以我有一些机器学习数据分成测试和训练数据。数据从csv文件中导入,并使用numpy数组拆分为训练和测试数据。我能够很好地拆分数据,但是当我试图在模型中使用这些数据时,我会得到以下错误:
ValueError: Input 0 of layer "mobilenetv2_1.00_3998" is incompatiblewith the layer: expected shape=(None, 3998, 140, 1), fou
作为输入,我得到了360个激光雷达数据点和4个额外的距离等值。算法应该学习如何在机器人的环境中导航。我肯定会得到dimension:expected simple_rnn_1_input to have 3 dimensions, but got array with shape (1, 364)的错误,因为输入仍然是二维的,而LSTM需要三维。self.model.fit(X_batch, Y_batch, Z_batch, batch_size=self.batch_size, epochs=1, verbose=0)