QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.hebbian_qd.HebbianSession Class Reference

Stateful controller instance for a single rollout. More...

Public Member Functions

 weights (self)
 act (self, observation)
 Compute an action and apply the neuron-centric Hebbian update.

Detailed Description

Stateful controller instance for a single rollout.

Return tanh actions and update the local synapses after each forward pass.

Definition at line 72 of file hebbian_qd.py.

Member Function Documentation

◆ act()

qdpy.algorithms.hebbian_qd.HebbianSession.act ( self,
observation )

Compute an action and apply the neuron-centric Hebbian update.

Parameters
observationFlat input of the configured length.
Returns
Bounded action vector in [-1, 1].
Use the current weights for inference and the activations for the next update.

Definition at line 95 of file hebbian_qd.py.

◆ weights()

qdpy.algorithms.hebbian_qd.HebbianSession.weights ( self)
Return a copy of each layer's current synapse matrix.

Definition at line 88 of file hebbian_qd.py.


The documentation for this class was generated from the following file: