简体   繁体   English

Pylearn2用于时间序列或序列预测的示例

[英]Pylearn2 example for time series or sequence prediction

Can Pylearn2 be used for time series or sequence prediction of continuous numerical data? Pylearn2可以用于连续数值数据的时间序列或序列预测吗? Can an LSTM recurrent neural network in Pylearn2 be used for this? Pylearn2中的LSTM递归神经网络可以用于此吗? If so, can someone post an example code in Pylearn2/Theano/Python? 如果是这样,有人可以在Pylearn2 / Theano / Python中发布示例代码吗?

My understanding is that PyLearn2 is still not great for any kind of recurrent network, though I believe they are intending to improve support for these kinds of models. 我的理解是,尽管我相信PyLearn2打算改善对此类模型的支持,但它仍然不适用于任何形式的递归网络。

Having said that, there is experimental support, including an LSTM implementation. 话虽如此,这里有实验支持,包括LSTM实现。

Take a look in the PyLearn2 source code in the directory pylearn2/sandbox/rnn , and in particular at the contents of pylearn2/sandbox/rnn/models/rnn.py where you'll find an LSTM implementation. 查看目录pylearn2 / sandbox / rnn中的PyLearn2源代码,尤其是pylearn2 / sandbox / rnn / models / rnn.py的内容 ,您将在其中找到LSTM实现。

Because of its experimental nature, this code may not work properly, may not be supported fully, and the documentation may be incomplete or inaccurate. 由于其实验性质,此代码可能无法正常工作,可能无法得到完全支持,并且文档可能不完整或不准确。

If you're willing to forego the intended ease of use benefits of PyLearn2 and work at a more detailled level then recurrent neural newtworks can be implemented just fine in Theano. 如果您愿意放弃PyLearn2预期的易用性优势,并在更详细的层次上进行工作,那么可以在Theano中很好地实现循环神经newtworks。 There are many tutorials for this, including: 有很多关于此的教程,包括:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM