unfold_memory¶
- unfold_memory(
- model: SparsePomdp,
- memory: PomdpMemory,
- *,
- add_memory_labels: bool = False,
- keep_state_valuations: bool = False,
Unfold the memory for a finite-state controller into the POMDP.
- Parameters:
model – Canonic POMDP.
memory – Memory structure, see
create_memory().add_memory_labels – Whether labels for the memory states are added.
keep_state_valuations – Whether the state valuations are kept.
- Returns:
POMDP whose states are the product of the states of the original POMDP and the memory states.