edu.cmu.ml.rtw.pra.graphs

PprNegativeExampleSelector

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

    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.

  13. implicit val formats: DefaultFormats.type

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. val graph: Graph

  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. val maxAttempts: Int

  19. val maxPotentialPredictions: Int

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

    Definition Classes
    AnyRef
  21. val negativesPerPositive: Int

  22. final def notify(): Unit

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

    Definition Classes
    AnyRef
  24. val paramKeys: Seq[String]

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

  26. val pprComputer: PprComputer

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

  28. def selectNegativeExamples(data: Dataset[NodePairInstance], allowedSources: Set[Int], allowedTargets: Set[Int]): Dataset[NodePairInstance]

    Returns a new Dataset that includes the input data and negative instances sampled according to PPR from the positive examples in the input data.

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped