R预测.DArch示例提供错误"尝试获取插槽"数据"来自基本类的对象(" NULL"),没有插槽"

时间:2016-11-15 03:41:39

标签: r

查看https://cran.r-project.org/web/packages/darch/darch.pdf的v0.12我正在使用给出的例子来预测.DArch

library(darch)

data(iris)
model <- darch(Species ~ ., iris, retainData = T)
predict(model)

但是,我收到错误:

WARN [2016-11-13 19:24:17] gputools package not available, using CPU matrix multiplication.
INFO [2016-11-13 19:24:17] Constructing a darch with 3 layers.
INFO [2016-11-13 19:24:17] Generating RBMs.
INFO [2016-11-13 19:24:17] Construct new RBM instance with 4 visible and 10 hidden units.
INFO [2016-11-13 19:24:17] Construct new RBM instance with 10 visible and 3 hidden units.
Error in getExecuteFunction(darch)(darch, dataSet@data) : 
  trying to get slot "data" from an object of a basic class ("NULL") with no slots

关于如何解决这个问题的任何想法?

1 个答案:

答案 0 :(得分:0)

将R升级到3.3.2,现在运行正常。感谢。