Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用keras实现LSTM的第二种多对多体系结构_Keras_Lstm_Recurrent Neural Network - Fatal编程技术网

如何使用keras实现LSTM的第二种多对多体系结构

如何使用keras实现LSTM的第二种多对多体系结构,keras,lstm,recurrent-neural-network,Keras,Lstm,Recurrent Neural Network,我在谷歌上搜索过,大多数博客都是关于多对一或第一个多对多架构的,有没有关于最后一个架构的例子。thx 只需设置timestep=input\u size+output\u size-1,最后一个output\u size-1输入为全零;在最后一层,添加一个屏蔽层来过滤第一个输入大小1的输出。这样我们就可以得到一个输入大小到输出大小的LSTM架构。可能的重复

我在谷歌上搜索过,大多数博客都是关于多对一或第一个多对多架构的,有没有关于最后一个架构的例子。thx


只需设置timestep=input\u size+output\u size-1,最后一个output\u size-1输入为全零;在最后一层,添加一个屏蔽层来过滤第一个输入大小1的输出。这样我们就可以得到一个输入大小到输出大小的LSTM架构。

可能的重复