Packages

trait StateValueFn[Obs, T] extends AnyRef

Along with ActionValueFn, this is the main trait in tabular reinforcement learning for tracking the value of a state as evidenced by the observation it returns.

We need some way for this to learn, or see new observations, that's part of the trait.

Obs

Observation returned by the State instances tracked by StateValueFn.

T

type of values tracked by StateValueFn.

Self Type
StateValueFn[Obs, T]
Source
StateValueFn.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateValueFn
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def seen: Iterable[Obs]

    Returns an Iterable of all observations associated with some internally tracked value T.

  2. abstract def stateValue(obs: Obs): T

    Returns the stored value associated with the given observation.

  3. abstract def update(state: Obs, value: T): StateValueFn[Obs, T]

    Absorb a new value for the supplied observation.

    Absorb a new value for the supplied observation. The behavior of this function is implementation dependent; some might ignore the value, some might merge it in to an existing set of values, some might completely replace the stored state.

Concrete 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. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fold[U](prepare: (U) ⇒ T, present: (T) ⇒ U): StateValueFn[Obs, U]

    Transforms this StateValueFn into a new instance that applies the supplied prepare to all incoming values before they're learned, and presents tracked T instances using the present fn before returning them via stateValue.

  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def mergeable(implicit T: Semigroup[T]): StateValueFn[Obs, T]

    Returns a StateValueFn instance that uses the supplied semigroup T to merge values into this current StateValueFn.

    Returns a StateValueFn instance that uses the supplied semigroup T to merge values into this current StateValueFn.

    T

    Semigroup instance used to merge values.

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toEvaluator[A, R, S[_]]: StateValue[Obs, A, R, T, S]

    TODO fill in.

  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped