Class/Object

com.eharmony.aloha.models.vw.jni.multilabel

VwSparseMultilabelPredictor

Related Docs: object VwSparseMultilabelPredictor | package multilabel

Permalink

case class VwSparseMultilabelPredictor[K](modelSource: ModelSource, defaultNs: List[Int], namespaces: List[(String, List[Int])], numLabelsInTrainingSet: Int) extends SparseMultiLabelPredictor[K] with Closeable with Product with Serializable

Creates a VW multi-label predictor plugin for MultilabelModel.

K

the label or class type.

modelSource

a specification for the underlying Cost Sensitive One Against All VW model with label dependent features. VW flag --csoaa_ldf mc or --wap_ldf mc is expected. For more information, see the VW CSOAA wiki page. Also see the Cost-Sensitive Multiclass Classification section of Hal Daume's On Multiclass Classification in VW page. This model specification will be materialized in this class.

defaultNs

The list of indices into the features sequence that does not have an exist in any value of the namespaces map.

namespaces

Mapping from namespace name to indices in the features sequence passed to the apply method. There should be no empty namespaces, meaning key-value pairs appearing in the map should not values that are empty sequences. This is a requirement.

Since

9/8/2017

Linear Supertypes
Serializable, Serializable, Product, Equals, Closeable, AutoCloseable, (SparseFeatures, Labels[K], LabelIndices, SparseLabelDepFeatures) ⇒ Try[Map[K, Double]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VwSparseMultilabelPredictor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Closeable
  7. AutoCloseable
  8. Function4
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VwSparseMultilabelPredictor(modelSource: ModelSource, defaultNs: List[Int], namespaces: List[(String, List[Int])], numLabelsInTrainingSet: Int)

    Permalink

    modelSource

    a specification for the underlying Cost Sensitive One Against All VW model with label dependent features. VW flag --csoaa_ldf mc or --wap_ldf mc is expected. For more information, see the VW CSOAA wiki page. Also see the Cost-Sensitive Multiclass Classification section of Hal Daume's On Multiclass Classification in VW page. This model specification will be materialized in this class.

    defaultNs

    The list of indices into the features sequence that does not have an exist in any value of the namespaces map.

    namespaces

    Mapping from namespace name to indices in the features sequence passed to the apply method. There should be no empty namespaces, meaning key-value pairs appearing in the map should not values that are empty sequences. This is a requirement.

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 apply(features: IndexedSeq[Sparse], labels: IndexedSeq[K], indices: IndexedSeq[Int], labelDependentFeatures: IndexedSeq[IndexedSeq[Sparse]]): Try[Map[K, Double]]

    Permalink

    Given the input, form a VW example, and delegate to the underlying CSOAA LDF VW model.

    Given the input, form a VW example, and delegate to the underlying CSOAA LDF VW model.

    features

    (non-label dependent) features shared across all labels.

    labels

    labels for which the VW learner should produce predictions.

    indices

    the indices labels into the sequence of all labels encountered during training.

    labelDependentFeatures

    Any label dependent features. This is not yet utilized and is currently ignored.

    returns

    a Map from label to prediction.

    Definition Classes
    VwSparseMultilabelPredictor → Function4
  5. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    VwSparseMultilabelPredictor → Closeable → AutoCloseable
  8. def curried: (SparseFeatures) ⇒ (Labels[K]) ⇒ (LabelIndices) ⇒ (SparseLabelDepFeatures) ⇒ Try[Map[K, Double]]

    Permalink
    Definition Classes
    Function4
    Annotations
    @unspecialized()
  9. val defaultNs: List[Int]

    Permalink

    The list of indices into the features sequence that does not have an exist in any value of the namespaces map.

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

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  14. val modelSource: ModelSource

    Permalink

    a specification for the underlying Cost Sensitive One Against All VW model with label dependent features.

    a specification for the underlying Cost Sensitive One Against All VW model with label dependent features. VW flag --csoaa_ldf mc or --wap_ldf mc is expected. For more information, see the VW CSOAA wiki page. Also see the Cost-Sensitive Multiclass Classification section of Hal Daume's On Multiclass Classification in VW page. This model specification will be materialized in this class.

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

    Permalink

    Mapping from namespace name to indices in the features sequence passed to the apply method.

    Mapping from namespace name to indices in the features sequence passed to the apply method. There should be no empty namespaces, meaning key-value pairs appearing in the map should not values that are empty sequences. This is a requirement.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val numLabelsInTrainingSet: Int

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

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

    Permalink
    Definition Classes
    Function4 → AnyRef → Any
  22. def tupled: ((SparseFeatures, Labels[K], LabelIndices, SparseLabelDepFeatures)) ⇒ Try[Map[K, Double]]

    Permalink
    Definition Classes
    Function4
    Annotations
    @unspecialized()
  23. def vwParams(): String

    Permalink

    Get the VW parameters used to invoke the underlying VW model.

    Get the VW parameters used to invoke the underlying VW model.

    returns

    VW parameters.

  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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Closeable

Inherited from AutoCloseable

Inherited from (SparseFeatures, Labels[K], LabelIndices, SparseLabelDepFeatures) ⇒ Try[Map[K, Double]]

Inherited from AnyRef

Inherited from Any

Ungrouped