Class

org.allenai.pnp

ValuePnp

Related Doc: package pnp

Permalink

case class ValuePnp[A](value: A) extends Pnp[A] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Pnp[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValuePnp
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Pnp
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValuePnp(value: A)

    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 beamSearch(k: Int, env: Env, context: PnpInferenceContext): PnpBeamMarginals[A]

    Permalink
    Definition Classes
    Pnp
  6. def beamSearch(k: Int, env: Env): PnpBeamMarginals[A]

    Permalink
    Definition Classes
    Pnp
  7. def beamSearch(k: Int, model: PnpModel): PnpBeamMarginals[A]

    Permalink
    Definition Classes
    Pnp
  8. def beamSearch(beamSize: Int = 1, maxIters: Int = 1, env: Env = Env.init, context: PnpInferenceContext = PnpInferenceContext.init): PnpBeamMarginals[A]

    Permalink

    Performs a beam search over executions of this program returning at most beamSize execution results.

    Performs a beam search over executions of this program returning at most beamSize execution results. env is the initial global state of the program, and graph is the initial computation graph. These must contain values for any global variables or neural network parameters referenced in the program.

    Definition Classes
    Pnp
  9. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  11. def filter(f: (A) ⇒ Boolean): Pnp[A]

    Permalink
    Definition Classes
    Pnp
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[B](f: (A) ⇒ Pnp[B]): Pnp[B]

    Permalink

    flatMap is the monad's bind operator.

    flatMap is the monad's bind operator. It chains two probabilistic computations together in the natural way where f represents a conditional distribution P(B | A). Hence, binding f to a distribution P(A) returns the marginal distribution over B, sum_a P(A=a) P(B | A=a).

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def inOneStep(): Pnp[A]

    Permalink
    Definition Classes
    Pnp
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def map[B](f: (A) ⇒ B): Pnp[B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def sample(numSamples: Int = 1, env: Env = Env.init, context: PnpInferenceContext = PnpInferenceContext.init): Execution[A]

    Permalink
    Definition Classes
    Pnp
  22. def sampleStep[C](env: Env, logProb: Double, context: PnpInferenceContext, continuation: PnpContinuation[A, C], queue: PnpSearchQueue[C], finished: PnpSearchQueue[C]): Unit

    Permalink

    Implements a single step of forward sampling.

    Implements a single step of forward sampling.

    Definition Classes
    ValuePnpPnp
  23. def searchStep[C](env: Env, logProb: Double, context: PnpInferenceContext, continuation: PnpContinuation[A, C], queue: PnpSearchQueue[C], finished: PnpSearchQueue[C]): Unit

    Permalink

    Implements a single search step of beam search.

    Implements a single search step of beam search.

    Definition Classes
    ValuePnpPnp
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val value: A

    Permalink
  26. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. 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 Pnp[A]

Inherited from AnyRef

Inherited from Any

Ungrouped