Skip to content
Back to skills

Ln Summary Protocol

ASecurity

Build likelihood-free linear-nonlinear neural simulations and STA/firing-rate summaries for SNPE-style posterior recovery.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill ln_summary_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ln Summary Protocol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ln Summary Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-ln-summary-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-ln-summary-protocol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: ln_summary_protocol
description: Build likelihood-free linear-nonlinear neural simulations and STA/firing-rate summaries for SNPE-style posterior recovery.
---

# LN Summary Protocol

Use this skill when a recovery or experiment needs a small mechanistic neural simulator with summary features matching the paper's LN receptive-field example. Do not use it as a generic classifier or as a likelihood evaluator.

## Inputs
- `theta`: receptive-field/filter vector.
- `n_stimuli`, `dimension`, and `seed` for deterministic stimulus generation.
- Optional `bias` and `gain` for Bernoulli spike probabilities.

## Outputs
- A JSON-compatible item containing `theta`, `stimuli`, `spikes`, `summary`, `sta`, `firing_rate`, and metadata.

## Workflow
1. Generate white-noise stimuli from a seeded RNG.
2. Apply a logistic nonlinearity to stimulus-filter projections.
3. Sample Bernoulli spikes without evaluating a likelihood.
4. Compute STA from spike-triggering stimuli and append firing rate.
5. Save the generated data item when used in recovery.

## Validation
Run `python tests/test_ln_summary.py` from this skill directory.

## Limitations
This is a reduced LN simulator for fast mechanism checks. It is not the full paper implementation and does not reproduce high-dimensional CNN/MDN experiments.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…