简体   繁体   English

MXNet 时间序列示例 - 在本地运行时出现 Dropout 错误

[英]MXNet Time-series Example - Dropout Error when running locally

I am looking into using MXNet LSTM modelling for time-series analysis for a problem i am currently working on.我正在研究使用 MXNet LSTM 建模对我目前正在处理的问题进行时间序列分析。

As a way of understanding how to implement this, I am following the example code given by xnNet from the link: https://mxnet.incubator.apache.org/tutorials/r/MultidimLstm.html作为理解如何实现这一点的一种方式,我遵循 xnNet 从链接中给出的示例代码: https ://mxnet.incubator.apache.org/tutorials/r/MultidimLstm.html

When running this script after downloading the necessary data to my local source, i am able to execute the code fine until i get to the following section to train the model:在将必要的数据下载到我的本地源后运行此脚本时,我能够很好地执行代码,直到我进入以下部分来训练模型:

## train the network
system.time(model <- mx.model.buckets(symbol = symbol, 
                                  train.data = train.data, 
                                  eval.data = eval.data,
                                  num.round = 100, 
                                  ctx = ctx, 
                                  verbose = TRUE, 
                                  metric = mx.metric.mse.seq, 
                                  initializer = initializer,
                                  optimizer = optimizer, 
                                  batch.end.callback = NULL, 
                                  epoch.end.callback = epoch.end.callback))

When running this section, the following error occurs once gaining connection to the API.运行此部分时,一旦获得与 API 的连接,就会发生以下错误。

 Error in mx.nd.internal.as.array(nd) : 
 [14:22:53] c:\jenkins\workspace\mxnet\mxnet\src\operator\./rnn-inl.h:359: 
 Check failed: param_.p == 0 (0.2 vs. 0) Dropout is not supported at the moment. 

Is there currently a problem internally within the XNNet R package which is unable to run this code?目前 XNNet R 包内部是否存在无法运行此代码的问题? I can't imagine they would provide a tutorial example for the package that is not executable.我无法想象他们会为不可执行的包提供教程示例。

My other thought is that it is something to do with my local device execution and connection to the API.我的另一个想法是,这与我的本地设备执行和 API 连接有关。 I haven't been able to find any information about this being a problem for other users though.不过,我无法找到有关这对其他用户来说是个问题的任何信息。

Any inputs or suggestions would be greatly appreciated thanks.任何意见或建议将不胜感激,谢谢。

Looks like you're running an old version of R package.看起来您正在运行旧版本的 R 包。 I think following instructions on this page to build a recent R-package should resolve this issue.我认为按照此页面上的说明构建最近的 R 包应该可以解决这个问题。

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

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