Class/Object

org.clulab.learning

PerceptronRankingClassifier

Related Docs: object PerceptronRankingClassifier | package learning

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PerceptronRankingClassifier(props: Properties)

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

    Permalink

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 addToAvg(): Unit

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
  7. val burnInIterations: Int

    Permalink
  8. def clone(): AnyRef

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

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

    Permalink
  11. def displayModel(pw: PrintWriter): Unit

    Permalink

    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

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

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

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

    Permalink
  16. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  20. var margin: Double

    Permalink
  21. val marginRatio: Double

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

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

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

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

    Permalink

    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

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

    Permalink

    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]

    Permalink

    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

    Definition Classes
    PerceptronRankingClassifierRankingClassifier
  28. var survivedIterations: Int

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. var totalQueries: Int

    Permalink
  32. var totalUpdates: Int

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

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

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

    Permalink
  36. var updatesPerEpoch: Int

    Permalink
  37. final def wait(): Unit

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

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

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

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from RankingClassifier[F]

Inherited from AnyRef

Inherited from Any

Ungrouped