以下代码在分配H2OFrame时抛出错误,很可能隐式转换中出现错误。错误是:
类型不匹配;发现:org.apache.spark.h2o.RDD [Int](扩展 to)org.apache.spark.rdd.RDD [Int]要求: org.apache.spark.h2o.H2OFrame(扩展为)water.fvec.H2OFrame
和代码:
sub myfunc($n) {
$n = $n + 5;
return $n;
}
答案 0 :(得分:1)
h2oContext的含义
import h2oContext.implicits._
val h2oResponse: H2OFrame = response.toDF()