class Folded[Obs, A, T, U] extends ActionValueFn[Obs, A, U]
ActionValueFn implementation that implements a fold.
Any value supplied to update will be transformed first by prepare before
being passed to the base ActionValueFn. Any value retrieved by
actionValue will be passed to present
before being returned.
- Source
- ActionValueFn.scala
- Alphabetic
- By Inheritance
- Folded
- ActionValueFn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Folded(base: ActionValueFn[Obs, A, T], prepare: (U) ⇒ T, present: (T) ⇒ U)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
actionValue(obs: Obs, a: A): U
Returns the stored value associated with the given obs, a pair.
Returns the stored value associated with the given obs, a pair.
- Definition Classes
- Folded → ActionValueFn
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fold[U](prepare: (U) ⇒ U, present: (U) ⇒ U): ActionValueFn[Obs, A, U]
Transforms this ActionValueFn into a new instance that applies the supplied
prepare
to all incoming values before they're learned, and presents tracked T instances using thepresent
fn before returning them via actionValue.Transforms this ActionValueFn into a new instance that applies the supplied
prepare
to all incoming values before they're learned, and presents tracked T instances using thepresent
fn before returning them via actionValue.- Definition Classes
- ActionValueFn
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mergeable(implicit T: Semigroup[U]): ActionValueFn[Obs, A, U]
Returns an ActionValueFn instance that uses the supplied semigroup T to merge values into this current ActionValueFn.
Returns an ActionValueFn instance that uses the supplied semigroup T to merge values into this current ActionValueFn.
- T
Semigroup instance used to merge values.
- Definition Classes
- ActionValueFn
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
seen(obs: Obs): Iterable[A]
Returns an iterable of all actions available from the supplied observation associated with any tracked value T.
Returns an iterable of all actions available from the supplied observation associated with any tracked value T.
- Definition Classes
- Folded → ActionValueFn
-
def
seenStates: Iterable[Obs]
Returns an Iterable of all observations associated with some internally tracked value T.
Returns an Iterable of all observations associated with some internally tracked value T.
- Definition Classes
- Folded → ActionValueFn
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toEvaluator[R, S[_]]: ActionValue[Obs, A, R, U, S]
TODO fill in.
TODO fill in.
- Definition Classes
- ActionValueFn
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(obs: Obs, action: A, value: U): ActionValueFn[Obs, A, U]
Absorb a new value for the supplied obs, action pair.
Absorb a new value for the supplied obs, action pair. 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.
- Definition Classes
- Folded → ActionValueFn
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
edit this text on github
ScalaRL
This is the API documentation for the ScalaRL functional reinforcement learning library.
Further documentation for ScalaRL can be found at the documentation site.
Check out the ScalaRL package list for all the goods.