Trait/Object

com.eharmony.aloha.models.reg

RegressionModelValueToTupleConversions

Related Docs: object RegressionModelValueToTupleConversions | package reg

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink
  6. def clone(): AnyRef

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

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
  12. final def getClass(): Class[_]

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

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

    Permalink
  15. final def isInstanceOf[T0]: Boolean

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

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

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

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

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

    Permalink

    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

  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped