StatefulReward

io.github.srs.model.entity.dynamicentity.agent.reward.StatefulReward
trait StatefulReward[E <: Entity, S] extends RewardModel[E]

A trait for defining stateful reward models for entities interacting with an environment.

This trait extends the RewardModel and introduces a state mechanism to maintain contextual information across evaluations, allowing for more complex reward computations based on the dynamic state of the system.

Type parameters

E

The type of entity for which the reward model is applicable.

S

The type of the state maintained by the reward model.

Attributes

Graph
Supertypes
trait RewardModel[E]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

protected def compute(prev: BaseState, curr: BaseState, entity: E, action: Action[_[_]], state: S): (Double, S)
protected def stateManager: RewardStateManager[E, S]

Concrete methods

final override def evaluate(prev: BaseState, curr: BaseState, entity: E, action: Action[_[_]]): Double

Attributes

Definition Classes