Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
06f2f82 replay all
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRacket committed Dec 9, 2017
1 parent 98a35d0 commit beacf8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ final class HivemallGroupedDataset(groupBy: RelationalGroupedDataset) {
}

/**
* @see hivemall.evaluation.FMeasureUDAF
* @see hivemall.evaluation.F1ScoreUDAF
* @group evaluation
*/
def f1score(predict: String, target: String): DataFrame = {
// checkType(target, ArrayType(IntegerType))
// checkType(predict, ArrayType(IntegerType))
val udaf = HiveUDAFFunction(
"f1score",
new HiveFunctionWrapper("hivemall.evaluation.FMeasureUDAF"),
new HiveFunctionWrapper("hivemall.evaluation.F1ScoreUDAF"),
Seq(predict, target).map(df.col(_).expr),
isUDAFBridgeRequired = true)
.toAggregateExpression()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ final class HivemallGroupedDataset(groupBy: RelationalGroupedDataset) {
}

/**
* @see hivemall.evaluation.FMeasureUDAF
* @see hivemall.evaluation.F1ScoreUDAF
* @group evaluation
*/
def f1score(predict: String, target: String): DataFrame = {
// checkType(target, ArrayType(IntegerType))
// checkType(predict, ArrayType(IntegerType))
val udaf = HiveUDAFFunction(
"f1score",
new HiveFunctionWrapper("hivemall.evaluation.FMeasureUDAF"),
new HiveFunctionWrapper("hivemall.evaluation.F1ScoreUDAF"),
Seq(predict, target).map(df.col(_).expr),
isUDAFBridgeRequired = true)
.toAggregateExpression()
Expand Down

0 comments on commit beacf8a

Please sign in to comment.