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

An immutable genome with five Hebbian coefficients per neuron. More...

Public Member Functions

 start (self, *, seed=0, plastic=True)
 Seed a new independent set of synapses.

Detailed Description

An immutable genome with five Hebbian coefficients per neuron.

Each layer has ordered rows of (A, B, C, D, eta).

A policy describes a dense bias-free tanh network and update rule.
Its weights are initialized separately for every rollout.

:param layer_sizes: Input, hidden and output widths.
:param genome: Flat layer-major coefficient vector in [-1, 1].
:param initial_scale: Uniform half-width for synapse initialization.
:param weight_limit: Symmetric per-synapse clip after the update.
:param learning_scale: Global multiplier for the local update.

Definition at line 34 of file hebbian_qd.py.

Member Function Documentation

◆ start()

qdpy.algorithms.hebbian_qd.HebbianPolicy.start ( self,
* ,
seed = 0,
plastic = True )

Seed a new independent set of synapses.

Parameters
seedSeed for initial weights.
plasticWhether forward passes update synapses.
Returns
A mutable HebbianSession.
Create a fresh rollout session. Use plastic=False for a frozen control.

Definition at line 66 of file hebbian_qd.py.


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