- 2026年07月08日
- 星期三
我试图用keras训练LSTM模型,但我觉得我在这里弄错了. 我收到了错误 ValueError: Error when checking input: expected lstm_17_input to have 3 dimensions, but got array with shape (10000, 0, 20) 而我的代码看起来像 model = Sequential()model.a
我是PyTorch的新手.我遇到了一些包含各种不同例子的 GitHub repository (link to full code example). 还有一个关于LSTM的例子,这是Network类: # RNN Model (Many-to-One)class RNN(nn.Module): def __init__(self, input_size, hidden_size, nu
