edu.arizona.sista.learning

PerceptronRankingClassifier

Related Docs: object PerceptronRankingClassifier | package learning

class PerceptronRankingClassifier[F] extends RankingClassifier[F] with Serializable

Perceptron classifier for ranking, in primal mode Includes averaging, hard margin, burn-in iterations User: mihais Date: 12/10/13

Linear Supertypes
Serializable, Serializable, RankingClassifier[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PerceptronRankingClassifier
  2. Serializable
  3. Serializable
  4. RankingClassifier
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PerceptronRankingClassifier(props: Properties)

  2. new PerceptronRankingClassifier(epochs: Int = 2, burnInIterations: Int = 0, marginRatio: Double = 1.0)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def addToAvg(): Unit

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. var avgWeights: Array[Double]

  7. val burnInIterations: Int

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def computeAverageVectorLength(dataset: RankingDataset[F], indices: Array[Int]): Double

  10. def datumDotProduct(c: Counter[F]): Double

  11. def displayModel(pw: PrintWriter): Unit

    Displays the learned model in a human-readable format, for debug purposes

    Displays the learned model in a human-readable format, for debug purposes

    Definition Classes
    PerceptronRankingClassifierRankingClassifier
  12. val epochs: Int

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

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

    Definition Classes
    AnyRef → Any
  15. var featureLexicon: Lexicon[F]

  16. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  20. var margin: Double

  21. val marginRatio: Double

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

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def probabilitiesOf(queryDatums: Iterable[Datum[Int, F]], gamma: Double = 1.0): Iterable[Double]

    Returns probabilities that can be used for ranking for a group of datums, from the same query These probabilities are obtained here from scoresOf() using softmax

    Returns probabilities that can be used for ranking for a group of datums, from the same query These probabilities are obtained here from scoresOf() using softmax

    queryDatums

    All datums for one query

    returns

    Definition Classes
    RankingClassifier
  26. def saveTo(fileName: String): Unit

    Saves the current model to a file

    Saves the current model to a file

    Definition Classes
    PerceptronRankingClassifierRankingClassifier
  27. def scoresOf(queryDatums: Iterable[Datum[Int, F]]): Iterable[Double]

    Returns scores that can be used for ranking for a group of datums, from the same query These scores do NOT have to be normalized, they are NOT probabilities!

    Returns scores that can be used for ranking for a group of datums, from the same query These scores do NOT have to be normalized, they are NOT probabilities!

    queryDatums

    All datums for one query

    returns

    Definition Classes
    PerceptronRankingClassifierRankingClassifier
  28. var survivedIterations: Int

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

    Definition Classes
    AnyRef
  30. def toString(): String

    Definition Classes
    AnyRef → Any
  31. var totalQueries: Int

  32. var totalUpdates: Int

  33. def train(dataset: RankingDataset[F], spans: Option[Iterable[(Int, Int)]] = None): Unit

  34. def update(better: Counter[Int], worse: Counter[Int]): Unit

  35. def updateWeights(v: Counter[Int], w: Double): Unit

  36. var updatesPerEpoch: Int

  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. var weights: Array[Double]

Inherited from Serializable

Inherited from Serializable

Inherited from RankingClassifier[F]

Inherited from AnyRef

Inherited from Any

Ungrouped