技能潮 SkillTide 提交收录
官方说明开源项目7 天前
gianlucamazza/affective-fly

gianlucamazza/affective-fly

Affective Fly: Drosophila MB valence circuit bridged to emotional-memory (AFT) for persistent mood agents
在 GitHub 查看 ↗直链 · 无中转页
★ 数取值
0 ★ · gianlucamazza/affective-fly · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-10 · 最近见到 2026-10-10 · 共见到 1 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 gianlucamazza/affective-fly;我们收录于 2026-10-10;最近见到 2026-10-10。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Affective Fly

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Reduced *Drosophila* mushroom-body circuit (Kenyon cells, DANs, MBONs) as the affect source for emotional-memory. Decisions use approach/avoid rates and a slow mood average, not embedding similarity.
Python 3.11+. Mapping: linear, documented in docs/MAPPING_MBON_DAN.md. Loop and modules: docs/ARCHITECTURE.md. Backend runtimes: docs/BENCHMARKS.md. Open work: docs/ROADMAP.md. Full index: docs/README.md.
Human-emotion words from honesty.py are labels on the circumplex, not claims about fly experience.
What it does
affective-fly turns a stream of host events into an **affective state** — valence, arousal, and an approach/avoid tendency on Russell's circumplex — and a discrete decision (wait, act, or skip). That state comes from a reduced *Drosophila* mushroom-body circuit (Kenyon cells → dopaminergic DANs → MBON output neurons), not from text embeddings.
It is the *affect source* for emotional-memory: the current affect is written onto encoded memories, and retrieved memories feed back into the next decision. Where a similarity-only memory reacts to *what* an event resembles, this reacts to *how the accumulated experience feels* — a slow mood (MoodField, τ in seconds) that carries across ticks and across processes.
How it works
Each tick (AffectiveLoop.step; full flow in docs/ARCHITECTURE.md):
- **Encode**: the current affect is attached to the memory via EmotionalMemory.set_affect / encode.
- **Retrieve**: past memories are recalled and can veto a decision (strongly negative recalled valence → SKIP).
- **Learn**: a reported reward/outcome triggers three-factor plasticity on KC→MBON weights (PAM if positive, PPL1 if negative).
The circumplex/mood readout of a demo episode is shown under Usage.
Objectives
- Provide a stable, interpretable valence/arousal signal as input to emotional-memory.
- Keep a documented, calibrated mapping from spiking rates to the MBON/DAN bands (docs/MAPPING_MBON_DAN.md), so real circuits — not only MockFlyCircuit — drive Policy and ActionGate.
- Support three-factor learning and versioned host integration (HostFrame, journal replay).
- Stay honest and reproducible: ruff/mypy clean, tests green, benchmarks committed, and no claim beyond what the code does (without a real connectome the KC→MBON weights are random, and the code says so).
Not in scope
Not a trading or financial product. Sex/mating ensembles and swarms of N ≫ 8 are also out of scope (see docs/ROADMAP.md). Brian2 C++ standalone codegen is opt-in (Brian2Circuit(codegen_target="cpp_standalone")); the default remains numpy so CI needs no compiler.
Installation
numpy is pinned below 2.x so Brian2 2.9 imports on 3.11. Extra embed (sentence-transformers) is optional; MiniLM is not loaded by make demo. Equivalent: pip install -e ".[dev,brian,viz]".
Usage
python -m affective_fly run uses lab mood taus (8 / 4 / 5 s) so valence moves in seconds and writes measure.jsonl with mood_dt=1.0. python -m affective_fly study uses MoodField() defaults (300 / 60 / 180 s) and wall-clock mood_dt. Those taus stay unvalidated hypotheses until a real host session — see docs/ARCHITECTURE.md and docs/PHASE6_MEASUREMENT.md.
来源
github · https://github.com/gianlucamazza/affective-fly
按领域浏览
开源项目
收录于
7 天前

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引