Class

edu.cmu.ml.rtw.pra.graphs

PprNegativeExampleSelector

Related Doc: package graphs

Permalink

class PprNegativeExampleSelector extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PprNegativeExampleSelector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PprNegativeExampleSelector(params: JValue, graph: Graph, outputter: Outputter, random: Random = new Random)

    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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def findPotentialPredictions(source: Int, range: Set[Int], knownPositives: Dataset[NodePairInstance]): Set[Int]

    Permalink

    Like the above, but just for one source node at a time.

  10. def findPotentialPredictions(domain: Set[Int], range: Set[Int], knownPositives: Dataset[NodePairInstance]): Dataset[NodePairInstance]

    Permalink

    This one is similar to selectNegativeExamples, but instead of looking specifically for _training_ examples that are close to the given positive examples, we look across the whole domain and range of a relation to find things to score.

    This one is similar to selectNegativeExamples, but instead of looking specifically for _training_ examples that are close to the given positive examples, we look across the whole domain and range of a relation to find things to score. The point of this is to actually perform KB completion, instead of just training a model or doing cross validation. So this method is used to generate possible predictions for NELL's ongoing run, for instance.

  11. implicit val formats: DefaultFormats.type

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val graph: Graph

    Permalink
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. val maxAttempts: Int

    Permalink
  17. val maxPotentialPredictions: Int

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

    Permalink
    Definition Classes
    AnyRef
  19. val negativesPerPositive: Int

    Permalink
  20. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. val paramKeys: Seq[String]

    Permalink
  23. def pickPredictionsByPpr(pprValues: Map[Int, Map[Int, Int]], knownPositives: Dataset[NodePairInstance]): Seq[(Int, Int)]

    Permalink
  24. val pprComputer: PprComputer

    Permalink
  25. def sampleByPrr(data: Dataset[NodePairInstance], otherPositiveInstances: Seq[NodePairInstance], pprValues: Map[Int, Map[Int, Int]]): Seq[(Int, Int)]

    Permalink
  26. def selectNegativeExamples(data: Dataset[NodePairInstance], otherPositiveInstances: Seq[NodePairInstance], allowedSources: Option[Set[Int]], allowedTargets: Option[Set[Int]]): Dataset[NodePairInstance]

    Permalink

    Returns a collection of negative instances sampled according to PPR from the positive examples in the input data.

    Returns a collection of negative instances sampled according to PPR from the positive examples in the input data. The does _NOT_ merge the newly created negative instances with the original dataset. The caller must do that, if they wish.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def weightedSample(weight_list: Array[(Int, Int)], total_weight: Double, default: Int): Int

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped