Trait

com.eharmony.aloha.models.vw.jni

VwJniModelJson

Related Doc: package jni

Permalink

trait VwJniModelJson extends SpecJson

Components of the JSON protocol for VwJniModel

Linear Supertypes
SpecJson, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VwJniModelJson
  2. SpecJson
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Vw(modelSource: ModelSource, params: Option[Either[Seq[String], String]] = Option(Right(""))) extends Product with Serializable

    Permalink

    Note that as is, this declaration will cause a compiler warning:

    Note that as is, this declaration will cause a compiler warning:

    "The outer reference in this type test cannot be checked at run time."

    This is a known issue and is a scala bug. See: - https://issues.scala-lang.org/browse/SI-4440 - http://stackoverflow.com/questions/16450008/typesafe-swing-events-the-outer-reference-in-this-type-test-cannot-be-checked-a

    A solution that would remove the warning is to make the class not final. Not doing this just to remove a warning.

    modelSource

    A ModelSource

    params

    VW initialization parameters. This is either a sequence of parameters that will be made into a single string by imploding the list with a " " separator or it is one string. If None,

    Attributes
    protected[this]
  2. case class VwJNIAst(modelType: String, modelId: ModelIdentity, features: ListMap[String, Spec], vw: Vw, namespaces: Option[ListMap[String, Seq[String]]] = Some(ListMap.empty), numMissingThreshold: Option[Int] = None, notes: Option[Seq[String]] = None, spline: Option[ConstantDeltaSpline] = None, classLabels: Option[SimpleTypeSeq] = None) extends Product with Serializable

    Permalink

    Note that as is, this declaration will cause a compiler warning:

    Note that as is, this declaration will cause a compiler warning:

    "The outer reference in this type test cannot be checked at run time."

    This is a known issue and is a scala bug. See: - https://issues.scala-lang.org/browse/SI-4440 - http://stackoverflow.com/questions/16450008/typesafe-swing-events-the-outer-reference-in-this-type-test-cannot-be-checked-a

    A solution that would remove the warning is to make the class not final. Not doing this just to remove a warning.

    modelType

    The model type (Should be VwJNI).

    modelId

    a model ID

    features

    an map of features (whose iteration order is the declaration order).

    vw

    an object for configuring the VwScorer object that will be embedded in the VwJniModel.

    namespaces

    an map of namespace name to sequence of feature names in the namespace.

    numMissingThreshold

    A threshold dictating how many missing features to allow before making the prediction fail. None means the threshold is ∞. If, when mapping feature functions over the input, the resulting sequence contains more than numMissingThreshold values that are empty Iterable values, then the Features.missingOk value returned by constructFeatures will be false; otherwise, it will be true.

    Attributes
    protected[this]

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. implicit object FeatureSpecFormat extends JsonFormat[Spec]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SpecJson
  5. implicit object VwFormat extends RootJsonFormat[Vw]

    Permalink
    Attributes
    protected[this]
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final val specJsonFormat: RootJsonFormat[Spec]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SpecJson
  18. implicit final val splineJsonFormat: RootJsonFormat[ConstantDeltaSpline]

    Permalink
    Attributes
    protected[this]
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. implicit final val vwJNIAstFormat: RootJsonFormat[VwJNIAst]

    Permalink
    Attributes
    protected[this]
  22. final def wait(): Unit

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

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

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

Inherited from SpecJson

Inherited from AnyRef

Inherited from Any

Ungrouped