首页 > 解决方案 > 在 Apache PredictionIO 中运行线性回归模型

问题描述

我正在尝试在 Apache predictionIo 中运行线性回归模型。并从 PredictionIO Templere 库中获取示例模板。

https://github.com/RAditi/PredictionIO-MLLib-LinReg-Template

在将引擎部署为服务时,我面临以下问题

未解决的依赖关系:未找到预测 Core_2.10 包

sbt.ResolveException:未解决的依赖项:io.prediction#core_2.10;0.13.0:未找到

[INFO] [Engine$] at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313)

以下是详细日志。

 [INFO] [Engine$] [error] (*:update) sbt.ResolveException: unresolved dependency: io.prediction#core_2.10;0.13.0: not found
 [INFO] [Engine$] [error] Total time: 143 s, completed Feb 28, 2019 9:12:35 AM
 [ERROR] [Engine$] Return code of build command: /usr/share/predictionio/sbt/sbt  package assemblyPackageDependency is 1. Aborting.

标签: machine-learninglinear-regressionapache-spark-mllibpredictionio

解决方案


您尝试包含 PIO 的方式是数据不足。(在成为 ASF 项目之前)

你需要使用这个: https ://mvnrepository.com/artifact/org.apache.predictionio/apache-predictionio-core

libraryDependencies += "org.apache.predictionio" %% "apache-predictionio-core" % "0.13.0" % "provided"

推荐阅读