com.eharmony.aloha.models.reg

RegressionModelValueToTupleConversions

trait RegressionModelValueToTupleConversions extends AnyRef

Provides a series of implicit conversions to make the specification of regression models cleaner.

Each feature in the Regression model constructs an Iterable[(String, Double)]. Once each feature constructs the iterable, the regression model maps this to a new one prefixed by the feature name. For instance, in the example that follows, "intercept" would emit a value of type Long which would become a function of type com.eharmony.aloha.semantics.func.GenAggFunc [A, Long]. This however doesn't match the expected output type of com.eharmony.aloha.semantics.func.GenAggFunc [A, Iterable[(String, Double)] ]. Conversions are provide for {Byte, Short, Int, Long, Float, Double} and the Option equivalents so that can produce specify the translate the JSON key-value pair "intercept": "1234L" to Iterable(("", 1234.0)), which when prefixed will yield Iterable(("intercept", 1234.0))

* {
"modelType": "Regression",
"modelId": {"id": 0, "name": ""},
"features": {
  "intercept": "1234L",
  "some_option": "Option(5678L).toKv"
  ...
},
...
}
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RegressionModelValueToTupleConversions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. implicit def byteToIterableTuple2EmptyStringDouble(x: Byte): Iterable[(String, Double)]

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. implicit def doubleToIterableTuple2EmptyStringDouble(x: Double): Iterable[(String, Double)]

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. implicit def floatToIterableTuple2EmptyStringDouble(x: Float): Iterable[(String, Double)]

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. implicit def intToIterableTuple2EmptyStringDouble(x: Int): Iterable[(String, Double)]

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. implicit def longToIterableTuple2EmptyStringDouble(x: Long): Iterable[(String, Double)]

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. implicit def shortToIterableTuple2EmptyStringDouble(x: Short): Iterable[(String, Double)]

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. implicit def toKv[A](a: Option[A]): OptToKv[A]

    Provides extension methods to Options via com.eharmony.aloha.models.reg.OptToKv.

    Provides extension methods to Options via com.eharmony.aloha.models.reg.OptToKv.

    A

    the type of value

    a

    an optional value

    returns

    an OptToKv instance

  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped