Skip to content

Commit

Permalink
[SW-1281] Fix bad representation of predictionCol on H2OMOJOModel (#1199
Browse files Browse the repository at this point in the history
)

(cherry picked from commit d3f0662)
  • Loading branch information
jakubhava committed May 15, 2019
1 parent a0b6c64 commit 90dc7c6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ class H2OMOJOPipelineModel(override val uid: String)
val func = udf[Double, Double] {
identity
}
func(col(s"$getPredictionCol().`$column`")).alias(column)
func(col(s"${getPredictionCol()}.`$column`")).alias(column)
} else {
val func = selectFromArray(getOutputNames().indexOf(column))
func(col(s"$getPredictionCol().preds")).alias(column)
func(col(s"${getPredictionCol()}.preds")).alias(column)
}
}

Expand Down

0 comments on commit 90dc7c6

Please sign in to comment.