QDpy
Loading...
Searching...
No Matches
behavior_transfer.py File Reference

Initial-to-solution and across-solutions behavior characterization. More...

Go to the source code of this file.

Classes

class  qdpy.algorithms.behavior_transfer.BehaviorCharacterization
 Fixed descriptor scaling learned offline from successful training runs. More...

Namespaces

namespace  qdpy

Functions

 qdpy.algorithms.behavior_transfer.spirit_descriptor (states, actions, *, state_count, action_count)
 Estimate conditional action probabilities from a discrete state–action trace.

Detailed Description

Initial-to-solution and across-solutions behavior characterization.

See also
https://doi.org/10.1145/2908812.2908929

Definition in file behavior_transfer.py.

Function Documentation

◆ spirit_descriptor()

qdpy.algorithms.behavior_transfer.spirit_descriptor ( states,
actions,
* ,
state_count,
action_count )

Estimate conditional action probabilities from a discrete state–action trace.

Parameters
statesInteger sensory state IDs in [0, state_count), one per timestep.
actionsInteger action IDs in [0, action_count), one per timestep.
state_countNumber of possible sensory states.
action_countNumber of possible actions.
Returns
State-major vector of probabilities, uniform for unobserved states.
Build the paper's SPIRIT-o behavior descriptor from a discrete trajectory.

Definition at line 24 of file behavior_transfer.py.