com.eharmony.aloha.models.conversion

DoubleToJavaLongModel

case class DoubleToJavaLongModel[U, -A, +B <: U](modelId: ModelIdentity, submodel: Submodel[Double, A, U], auditor: Auditor[U, Long, B], scale: Double = 1, translation: Double = 0, clampLower: Long = scala.Long.MinValue, clampUpper: Long = scala.Long.MaxValue, round: Boolean = false) extends ConversionModel[U, Double, Long, A, B] with Logging with Product with Serializable

A model that converts from Scala Doubles to Java Longs by scaling, translating, then rounding.

A

model input type

modelId

a model id

submodel

a submodel whose values should be translated

scale

a scale factor

translation

a translation

round

whether to round (true) or floor (false)

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, ConversionModel[U, Double, Long, A, B], SubmodelBase[U, Long, A, B], Model[A, B], (A) ⇒ B, Submodel[Long, A, B], Closeable, AutoCloseable, Identifiable[ModelIdentity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleToJavaLongModel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. ConversionModel
  8. SubmodelBase
  9. Model
  10. Function1
  11. Submodel
  12. Closeable
  13. AutoCloseable
  14. Identifiable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DoubleToJavaLongModel(modelId: ModelIdentity, submodel: Submodel[Double, A, U], auditor: Auditor[U, Long, B], scale: Double = 1, translation: Double = 0, clampLower: Long = scala.Long.MinValue, clampUpper: Long = scala.Long.MaxValue, round: Boolean = false)

    modelId

    a model id

    submodel

    a submodel whose values should be translated

    scale

    a scale factor

    translation

    a translation

    round

    whether to round (true) or floor (false)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: (B) ⇒ A): (A) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. final def apply(a: A): B

    Definition Classes
    SubmodelBase → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val auditor: Auditor[U, Long, B]

  10. val clampLower: Long

  11. val clampUpper: Long

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def close(): Unit

    Definition Classes
    ConversionModelSubmodelBase → Closeable → AutoCloseable
  14. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. val conversion: (Double) ⇒ Long

    Definition Classes
    DoubleToJavaLongModelConversionModel
  16. final def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a debug logging message, with an exception.

    Issue a debug logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  17. final def debug(msg: ⇒ Any): Unit

    Issue a debug logging message.

    Issue a debug logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a error logging message, with an exception.

    Issue a error logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  20. final def error(msg: ⇒ Any): Unit

    Issue a error logging message.

    Issue a error logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  21. def failure(errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[U] = Nil): Subvalue[B, Long]

    Attributes
    protected[this]
    Definition Classes
    SubmodelBase
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  24. final def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a info logging message, with an exception.

    Issue a info logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  25. final def info(msg: ⇒ Any): Unit

    Issue a info logging message.

    Issue a info logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  26. final def isDebugEnabled: Boolean

    Determine whether debug logging is enabled.

    Determine whether debug logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  27. final def isErrorEnabled: Boolean

    Determine whether error logging is enabled.

    Determine whether error logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  28. final def isInfoEnabled: Boolean

    Determine whether info logging is enabled.

    Determine whether info logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. final def isTraceEnabled: Boolean

    Determine whether trace logging is enabled.

    Determine whether trace logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  31. final def isWarnEnabled: Boolean

    Determine whether warn logging is enabled.

    Determine whether warn logging is enabled.

    Attributes
    protected[this]
    Definition Classes
    Logging
  32. final lazy val logger: Logger

    The logger is a @transient lazy val to enable proper working with Spark.

    The logger is a @transient lazy val to enable proper working with Spark. The logger will not be serialized with the rest of the class with which this trait is mixed-in.

    Attributes
    protected[this]
    Definition Classes
    Logging
  33. def loggerInitName(): String

    The name with which the logger is initialized.

    The name with which the logger is initialized. This can be overridden in a derived class.

    returns

    Attributes
    protected
    Definition Classes
    Logging
  34. final def loggerName: String

    Get the name associated with this logger.

    Get the name associated with this logger.

    returns

    the name.

    Attributes
    protected[this]
    Definition Classes
    Logging
  35. val modelId: ModelIdentity

    a model id

    a model id

    Definition Classes
    DoubleToJavaLongModelConversionModelIdentifiable
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. val round: Boolean

    whether to round (true) or floor (false)

  40. val scale: Double

    a scale factor

  41. val submodel: Submodel[Double, A, U]

    a submodel whose values should be translated

    a submodel whose values should be translated

    Definition Classes
    DoubleToJavaLongModelConversionModel
  42. def subvalue(a: A): Subvalue[B, Long]

    Produce a score.

    Produce a score.

    a

    an input to the model representing covariate data.

    returns

    a Tuple2 whose first field represents a simple version of the score, the second field (that should be a Some instance if audit is true) is a more involved reporting of the score including errors and all sub-model scores.

    Definition Classes
    ConversionModelSubmodel
  43. def success(naturalValue: Long, errorMsgs: ⇒ Seq[String] = Nil, missingVarNames: ⇒ Set[String] = Set.empty, subvalues: Seq[U] = Nil, prob: ⇒ Option[Float] = None): Subvalue[B, Long]

    Attributes
    protected[this]
    Definition Classes
    SubmodelBase
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  46. final def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a trace logging message, with an exception.

    Issue a trace logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  47. final def trace(msg: ⇒ Any): Unit

    Issue a trace logging message.

    Issue a trace logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging
  48. val translation: Double

    a translation

  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Issue a warn logging message, with an exception.

    Issue a warn logging message, with an exception.

    msg

    the message object. toString() is called to convert it to a loggable string.

    t

    the exception to include with the logged message.

    Attributes
    protected[this]
    Definition Classes
    Logging
  53. final def warn(msg: ⇒ Any): Unit

    Issue a warn logging message.

    Issue a warn logging message.

    msg

    the message object. toString() is called to convert it to a loggable string.

    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from ConversionModel[U, Double, Long, A, B]

Inherited from SubmodelBase[U, Long, A, B]

Inherited from Model[A, B]

Inherited from (A) ⇒ B

Inherited from Submodel[Long, A, B]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Identifiable[ModelIdentity]

Inherited from AnyRef

Inherited from Any

Ungrouped