我想要構建40級LSTM分類器來分析時間序列數據。我有從13個傳感器收集的13維實時數據。當我運行下面的代碼時,我不斷收到此錯誤消息。 ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model e
下面的網絡代碼應該是您的經典簡單LSTM語言模型,在一段時間後開始輸出nan損失...在我的訓練集上需要幾個小時,我無法複製它很容易在較小的數據集上。但它總是在嚴肅的訓練中發生。 Sparse_softmax_with_cross_entropy應該在數值上是穩定的,所以它不可能是原因...但除此之外,我沒有看到任何其他可能導致圖形問題的節點。可能是什麼問題呢? class MyLM():