object ActionValueFn
- Alphabetic
- By Inheritance
- ActionValueFn
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Base[Obs, A, T] extends ActionValueFn[Obs, A, T]
Basic implementation of an ActionValueFn that stores any value supplied to update in an internal immutable map.
-
class
Folded[Obs, A, T, U] extends ActionValueFn[Obs, A, U]
ActionValueFn implementation that implements a fold.
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. -
class
Mergeable[Obs, A, T] extends ActionValueFn[Obs, A, T]
ActionValueFn implementation that merges values passed to update into the value stored by the base ActionValueFn using the supplied Semigroup's
plus
function.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
empty[Obs, A, T](default: T): ActionValueFn[Obs, A, T]
Returns an empty ActionValueFn backed by an immutable map.
Returns an empty ActionValueFn backed by an immutable map. The supplied default value will be returned by ActionValueFn.actionValue for any (obs, action) pair that's not been seen by the ActionValueFn.
-
def
empty[Obs, A, T]: ActionValueFn[Obs, A, Option[T]]
Returns an empty ActionValueFn backed by an immutable map.
-
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
fromAggregator[Obs, A, T, U](agg: MonoidAggregator[U, T, U]): ActionValueFn[Obs, A, U]
Returns an ActionValueFn that:
Returns an ActionValueFn that:
- uses the MonoidAggregator's monoid.zero as an initial value
- merges values in using the aggregator's monoid
- prepares and presents using the aggregator's analogous functions
-
def
fromAggregator[Obs, A, T, U](default: T, agg: Aggregator[U, T, U]): ActionValueFn[Obs, A, U]
Returns an ActionValueFn that:
Returns an ActionValueFn that:
- uses the supplied default as an initial value
- merges values in using the aggregator's semigroup
- prepares and presents using the aggregator's analogous functions
-
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[Obs, A, T](default: T)(implicit T: Semigroup[T]): ActionValueFn[Obs, A, T]
Returns an empty ActionValueFn backed by an immutable map that uses the supplied
default
as a default value, and merges new learned values into the value in the underlying map using the Semigroup'splus
function. -
def
mergeable[Obs, A, T](implicit T: Monoid[T]): ActionValueFn[Obs, A, T]
Returns an empty ActionValueFn backed by an immutable map that uses the zero of the supplied Monoid as a default value, and merges new learned values into the value in the underlying map using the Monoid's
plus
function. -
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.