valence

Read every agent state through a real fly brain

Any state in, 16 signed compartment numbers and one scalar out.

CA 0xxx @Valencefly

No dependencies. No network at runtime. About 0.65 ms per read.

npx skills add https://github.com/valencefly/valence

How it reads

Four stages, three real synapse tables.

  1. 01. Project
  2. 02. Expand
  3. 03. Sparsify
  4. 04. Read out

Signed by the fly

The sign of each compartment is the sign of its own PAM to PPL1 presynapse ratio.

  • Derived signs

    The ratio decides. Nobody chose them.

  • No update rule

    Same input, same output, forever.

  • Zero dependencies

    One Node process. No network.

  • Proven red

    18 gate arms, each broken once on purpose.

The compartments

Sixteen chips: the name, and the sign its dopamine input gives it.

See every compartment
  • CA0
  • a'1-
  • a'2-
  • a'3-
  • a1+
  • a2-
  • a3-
  • b'1+
  • b'2+
  • b1+
  • b2+
  • g1-
  • g2-
  • g3+
  • g4+
  • g5+

+ appetitive, - aversive, 0 no teaching signal.

Give your agent a gut

Install it, read a state, compare the scalar across states.

  1. Install it
  2. Read a state
  3. Compare the scalar
Install valence

MIT licensed. Nothing to train.