Skip to content

Commit

Permalink
Try to fix the failing test (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
tovbinm committed Jul 9, 2019
1 parent c25f4eb commit 3b82d96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ class FractionOfResponsesEstimator(uid: String = UID[FractionOfResponsesEstimato
import dataset.sparkSession.implicits._
val sizes = dataset.map(_.map(_.size))
val size = getInputFeatures().length
val counts = sizes.select(SequenceAggregators.SumNumSeq[Int](size = size).toColumn).first()
val counts = sizes.select(SequenceAggregators.SumNumSeq[Int](size = size).toColumn).first().map(_.toDouble)
new FractionOfResponsesModel(counts = counts, operationName = operationName, uid = uid)
}
}

final class FractionOfResponsesModel private[op]
(
val counts: Seq[Int],
val counts: Seq[Double],
operationName: String,
uid: String
) extends SequenceModel[DateList, OPVector](operationName = operationName, uid = uid) {
Expand Down

0 comments on commit 3b82d96

Please sign in to comment.