在Apache PredictionIO中运行线性回归模型

时间:2019-02-28 09:22:39

标签: machine-learning linear-regression apache-spark-mllib predictionio

我正在尝试在Apache projectionIo中运行线性回归模型。 并从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.

1 个答案:

答案 0 :(得分:0)

您试图包含PIO的方式没有数据。 (这是在成为ASF项目之前)

您需要使用以下命令: https://mvnrepository.com/artifact/org.apache.predictionio/apache-predictionio-core

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