Class/Object

com.eharmony.aloha.models.vw.jni

VwJniModel

Related Docs: object VwJniModel | package jni

Permalink

final case class VwJniModel[U, N, -A, +B <: U](modelId: ModelIdentity, vwParams: String, modelSource: ModelSource, featureNames: IndexedSeq[String], featureFunctions: IndexedSeq[GenAggFunc[A, Iterable[(String, Double)]]], defaultNs: List[Int], namespaces: List[(String, List[Int])], learnerCreator: (VWLearner) ⇒ (String) ⇒ N, auditor: Auditor[U, N, B], numMissingThreshold: Option[Int] = None) extends SubmodelBase[U, N, A, B] with RegressionFeatures[A] with Logging with Product with Serializable

Model that delegates to a VW JNI model.

A

model input type

B

model output type

modelId

ModelIdentity

vwParams

the "command" used to instantiate VW.

modelSource

either the FsInstance pointing to the VW model or the Base64 encoded VW model.

featureNames

names of features (parallel to featureFunctions)

featureFunctions

functions to extract values from the input value

defaultNs

indices of features that will be placed in the default VW namespace

namespaces

mapping from namespace name to indices of features that will be placed in the namespace

learnerCreator

A function that when given a VWLearner creates a function that can make a prediction, given string-based input.

numMissingThreshold

A threshold dictating how many missing features to allow before making the prediction fail. See com.eharmony.aloha.models.reg.RegressionFeatures.numMissingThreshold in aloha-core.

Linear Supertypes
Serializable, Serializable, Product, Equals, Logging, RegressionFeatures[A], SubmodelBase[U, N, A, B], Model[A, B], (A) ⇒ B, Submodel[N, A, B], Closeable, AutoCloseable, Identifiable[ModelIdentity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VwJniModel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Logging
  7. RegressionFeatures
  8. SubmodelBase
  9. Model
  10. Function1
  11. Submodel
  12. Closeable
  13. AutoCloseable
  14. Identifiable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VwJniModel(modelId: ModelIdentity, vwParams: String, modelSource: ModelSource, featureNames: IndexedSeq[String], featureFunctions: IndexedSeq[GenAggFunc[A, Iterable[(String, Double)]]], defaultNs: List[Int], namespaces: List[(String, List[Int])], learnerCreator: (VWLearner) ⇒ (String) ⇒ N, auditor: Auditor[U, N, B], numMissingThreshold: Option[Int] = None)

    Permalink

    modelId

    ModelIdentity

    vwParams

    the "command" used to instantiate VW.

    modelSource

    either the FsInstance pointing to the VW model or the Base64 encoded VW model.

    featureNames

    names of features (parallel to featureFunctions)

    featureFunctions

    functions to extract values from the input value

    defaultNs

    indices of features that will be placed in the default VW namespace

    namespaces

    mapping from namespace name to indices of features that will be placed in the namespace

    learnerCreator

    A function that when given a VWLearner creates a function that can make a prediction, given string-based input.

    numMissingThreshold

    A threshold dictating how many missing features to allow before making the prediction fail. See com.eharmony.aloha.models.reg.RegressionFeatures.numMissingThreshold in aloha-core.

Type Members

  1. case class Features[F] extends Product with Serializable

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RegressionFeatures

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. def andThen[A](g: (B) ⇒ A): (A) ⇒ A

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

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

    Permalink
    Definition Classes
    Any
  7. val auditor: Auditor[U, N, B]

    Permalink
    Definition Classes
    VwJniModel → SubmodelBase
  8. def clone(): AnyRef

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

    Permalink

    Close the underlying VW model.

    Close the underlying VW model.

    Definition Classes
    VwJniModel → SubmodelBase → Closeable → AutoCloseable
  10. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def constructFeatures(a: A): Features[IndexedSeq[Iterable[(String, Double)]]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RegressionFeatures
  12. final def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  14. val defaultNs: List[Int]

    Permalink

    indices of features that will be placed in the default VW namespace

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  18. def failure(errorMsgs: ⇒ Seq[String], missingVarNames: ⇒ Set[String], subvalues: Seq[U]): Subvalue[B, N]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SubmodelBase
  19. val featureFunctions: IndexedSeq[GenAggFunc[A, Iterable[(String, Double)]]]

    Permalink

    functions to extract values from the input value

    functions to extract values from the input value

    Definition Classes
    VwJniModel → RegressionFeatures
  20. val featureNames: IndexedSeq[String]

    Permalink

    names of features (parallel to featureFunctions)

    names of features (parallel to featureFunctions)

    Definition Classes
    VwJniModel → RegressionFeatures
  21. def finalize(): Unit

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  29. final def isTraceEnabled: Boolean

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  31. val learnerCreator: (VWLearner) ⇒ (String) ⇒ N

    Permalink

    A function that when given a VWLearner creates a function that can make a prediction, given string-based input.

  32. final lazy val logger: Logger

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

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

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

    Permalink

    ModelIdentity

    ModelIdentity

    Definition Classes
    VwJniModel → Identifiable
  36. val modelSource: ModelSource

    Permalink

    either the FsInstance pointing to the VW model or the Base64 encoded VW model.

  37. val namespaces: List[(String, List[Int])]

    Permalink

    mapping from namespace name to indices of features that will be placed in the namespace

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

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

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

    Permalink
    Definition Classes
    AnyRef
  41. val numMissingThreshold: Option[Int]

    Permalink

    A threshold dictating how many missing features to allow before making the prediction fail.

    A threshold dictating how many missing features to allow before making the prediction fail. See com.eharmony.aloha.models.reg.RegressionFeatures.numMissingThreshold in aloha-core.

    Definition Classes
    VwJniModel → RegressionFeatures
  42. def subvalue(a: A): Subvalue[B, N]

    Permalink
    Definition Classes
    VwJniModel → Submodel
  43. def success(naturalValue: N, errorMsgs: ⇒ Seq[String], missingVarNames: ⇒ Set[String], subvalues: Seq[U], prob: ⇒ Option[Float]): Subvalue[B, N]

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

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging
  48. val vwParams: String

    Permalink

    the "command" used to instantiate VW.

  49. final def wait(): Unit

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

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

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

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

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Logging

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Logging

Inherited from RegressionFeatures[A]

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

Inherited from Model[A, B]

Inherited from (A) ⇒ B

Inherited from Submodel[N, A, B]

Inherited from Closeable

Inherited from AutoCloseable

Inherited from Identifiable[ModelIdentity]

Inherited from AnyRef

Inherited from Any

Ungrouped