Packages

object Sweep

Source
Sweep.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sweep
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Update extends Product with Serializable

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def diffBelow[Obs, T](l: StateValueFn[Obs, T], r: StateValueFn[Obs, T], epsilon: Double)(combine: (Double, Double) ⇒ Double)(implicit arg0: ToDouble[T]): Boolean

    Helper to tell if we can stop iterating.

    Helper to tell if we can stop iterating. The combine function is used to aggregate the differences between the value functions for each observation... the final aggregated value must be less than epsilon to return true, false otherwise.

  7. def diffValue[Obs, T](l: StateValueFn[Obs, T], r: StateValueFn[Obs, T], combine: (Double, Double) ⇒ Double)(implicit T: ToDouble[T]): Double

    TODO consider putting this on the actual trait.

  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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isPolicyStable[Obs, A, R, T, M[_], S[_]](l: StateValueFn[Obs, T], r: StateValueFn[Obs, T], prepare: (R) ⇒ T, merge: (T, T) ⇒ T, states: Traversable[State[Obs, A, R, S]])(implicit arg0: DModule[T], arg1: Ordering[T], arg2: Expectation[S]): Boolean
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def sweep[Obs, A, R, T, M[_], S[_]](valueFn: StateValueFn[Obs, T], policyFn: (StateValueFn[Obs, T]) ⇒ Policy[Obs, A, R, M, S], evaluatorFn: (StateValueFn[Obs, T], Policy[Obs, A, R, M, S]) ⇒ StateValue[Obs, A, R, T, S], states: Traversable[State[Obs, A, R, S]], inPlace: Boolean, valueIteration: Boolean)(implicit arg0: Expectation[M], arg1: Expectation[S]): StateValueFn[Obs, T]

    This sweeps across the whole state space and updates the policy every single time IF you set valueIteration to true.

    This sweeps across the whole state space and updates the policy every single time IF you set valueIteration to true. Otherwise it creates a policy once and then uses it each time.

    What we really want is the ability to ping between updates to the value function or learning steps; to insert them every so often.

    This function does NOT currently return the final policy, since you can just make it yourself, given the return value and the function.

  19. def sweepUntil[Obs, A, R, T, M[_], S[_]](valueFn: StateValueFn[Obs, T], policyFn: (StateValueFn[Obs, T]) ⇒ Policy[Obs, A, R, M, S], evaluatorFn: (StateValueFn[Obs, T], Policy[Obs, A, R, M, S]) ⇒ StateValue[Obs, A, R, T, S], states: Traversable[State[Obs, A, R, S]], stopFn: (StateValueFn[Obs, T], StateValueFn[Obs, T], Long) ⇒ Boolean, inPlace: Boolean, valueIteration: Boolean)(implicit arg0: Expectation[M], arg1: Expectation[S]): (StateValueFn[Obs, T], Long)
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. object Update extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped