r - Azure ML无法找到时间序列函数

标签 r azure machine-learning

我正在尝试在 Azure ML Studio 中运行 R 脚本。不幸的是,我收到以下错误:

Error 0063: The following error occurred during evaluation of R script:
---------- Start of error message from R ----------
could not find function "timeSeries"

奇怪的是,Azure ML 无法 找到函数 timeSeries,因为默认安装了 timeSeries 包。这是证明,您可以看到列出了 timeSeries。

enter image description here

这是我的代码和 Azure 图。第一个 R 脚本用于编写已安装软件包的 CSV(第一张图片)。第二个 R 脚本中的代码显示在第二张图片的右侧。

enter image description here 谢谢

最佳答案

该库需要加载,因为它是外部库

library(timeSeries)
#Map 1-based optional input ports to variables
dataset1 <- maml.mapInputPort(1) #class: data.frame
HOLD <- maml.mapInputPort(2) #class: data.frame

colnames(HOLD) <- c("Dates", "Val")

Daily.TS <- timeSeries(HOLD$Val, as.Date(HOLD$Dates),
     format="%Y-%m-%d")

关于r - Azure ML无法找到时间序列函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43175671/

相关文章:

python - 将 Python 包导入 Azure 自动化引擎时使用哪个平台

machine-learning - 如何计算神经网络中的循环?

python - Tensorflow:有没有办法将训练损失存储在 tf.Estimator 中

r - 在使用公式用插入符号的 train() 训练的 randomForest 对象上使用 predict() 时出错

r - 如何在 R 中为层次集群生成 Scree Plot?

postgresql - Azure Database for PostgreSQL 灵活服务器部署失败,并出现数据库名称参数错误

azure - 使用 Azure 认知服务提取超链接以及相关文本

apache-spark - 在 Java 中为 Apache Spark MLlib 构建 LabeledPoint of Features 的最佳方法

读取路径未知的.csv文件——R

r - 对于除当前级别之外的所有级别的每个级别的因子聚合值