All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eharmony.aloha.models.h2o.illConditioned.scala Maven / Gradle / Ivy

package com.eharmony.aloha.models.h2o

/**
 * H2o likes to return `NaN` as a "''valid''" prediction, especially when covariate data is missing.
 * This is not really acceptable.  So, we actually
 */
sealed trait IllConditioned {
  def errorMsg: String
}
case class IllConditionedScalar(value: Double) extends IllConditioned {
  def errorMsg = s"Ill-conditioned scalar prediction: $value."
}

case class IllConditionedMultinomial(probabilities: Vector[Double], index: Int) extends IllConditioned {
  def errorMsg = s"Ill-conditioned multinomial prediction: index $index of class probabilities: $probabilities"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy