What do you want to do?
3 use cases
-
Run a continuing brain that learns from live rewards
Compose a System 1 brain and feed it observations and measured rewards in one ongoing stream.
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), write a loop that drives Brain.compose(inputs=4, actions=2, arousal=True) through live() calls on the toy environment at <environment file>. Expected output: a printed log of actions, rewards and last_settlement values for 200 steps. Verify that each call after the first passes the reward of the previous action.
-
Preview a brain's responses without altering live memory
Use imagination to inspect possible responses while the live trace and pending feedback stay unchanged.
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), compose a brain with inputs=4 and actions=2, run live() for 50 steps, then call imagine() on <observation sequence> and print each phase's qualified flag. Expected output: the qualified flags and the live action taken afterward. Verify that the live action sequence matches a control run that skips imagine().
-
Test whether System 2 observers help a task
Build a System 1 brain and a recursive brain with observers, then compare them on the same task.
View prompt
Using the Python package cadence-net (repo muellerberndt/cadence), run Brain.compose with and without observers=(8,) on the environment at <task file> using live() for 500 steps each. Expected output: two reward-by-step series and a summary of their averages. Verify that both brains receive identical observations and rewards at each step.
How to use Cadence
- Check you have what it needs: Python 3.11 or newer; NumPy installed through pip; A toy environment or task that can supply an observation and a measured reward after each action.
- Open muellerberndt/cadence on GitHub and read the README and license.
python -m pip install cadence-net==0.84.3- Create a Python file that runs
brain = Brain.compose(inputs=4, actions=2, arousal=True)fromcadence. - Call
action = brain.live(observation)with one observation row, execute the action in your environment, and measure the reward. - Call
action = brain.live(next_observation, reward=reward)for each following step, passing the reward of the preceding action.
These steps come from our top use case, Run a continuing brain that learns from live rewards, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forResearchers and Python developers who want a continuing learning agent to test acquisition, retention and recovery over a long run of experience.
- Why it is hot
- LanguagePython
- Sourcegithub.com/muellerberndt/cadence · Back to Hot repos
Requirements
- Python 3.11 or newer
- NumPy installed through pip
- A toy environment or task that can supply an observation and a measured reward after each action
Maintain Cadence? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/muellerberndt-cadence/?ref=badge)
Questions about Cadence
What is Cadence?
Cadence is a Python library for building simulated animal-like brains that keep learning from live experience, with an optional self-observing System 2. It is an open-source project on GitHub: https://github.com/muellerberndt/cadence.
Who is Cadence for?
Researchers and Python developers who want a continuing learning agent to test acquisition, retention and recovery over a long run of experience.
What can I do with Cadence?
3 use cases so far, for example: Run a continuing brain that learns from live rewards; Preview a brain's responses without altering live memory; Test whether System 2 observers help a task. Each has steps and a copy-paste agent prompt.
What do I need to run Cadence?
Python 3.11 or newer; NumPy installed through pip; A toy environment or task that can supply an observation and a measured reward after each action.
What are alternatives to Cadence?
Other hot AI repos in Research: Scientific Agent Skills, Speaker Mem R1, DSH Council, Evo Bot, AI Engineering Course.
Is Cadence safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.