trait
RegressionModelValueToTupleConversions extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
implicit
def
byteToIterableTuple2EmptyStringDouble(x: Byte): Iterable[(String, Double)]
-
def
clone(): AnyRef
-
implicit
def
doubleToIterableTuple2EmptyStringDouble(x: Double): Iterable[(String, Double)]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
implicit
def
floatToIterableTuple2EmptyStringDouble(x: Float): Iterable[(String, Double)]
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
implicit
def
intToIterableTuple2EmptyStringDouble(x: Int): Iterable[(String, Double)]
-
final
def
isInstanceOf[T0]: Boolean
-
implicit
def
longToIterableTuple2EmptyStringDouble(x: Long): Iterable[(String, Double)]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
implicit
def
shortToIterableTuple2EmptyStringDouble(x: Short): Iterable[(String, Double)]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
implicit
def
toKv[A](a: Option[A]): OptToKv[A]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
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))