MCPcopy Index your code
hub / github.com/engellab/neuralflow

github.com/engellab/neuralflow @v3.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.0 ↗ · + Follow
330 symbols 976 edges 33 files 149 documented · 45% updated 37d agov3.0.0 · 2025-05-15★ 521 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NeuralFlow - version 3

Short description

Computational framework for modeling neural activity with continuous latent Langevin dynamics.

Quick installation: pip install git+https://github.com/engellab/neuralflow

The source code for the following publications:

1) M Genkin, KV Shenoy, C Chandrasekaran, TA Engel, The dynamics and geometry of choice in premotor cortex, bioRxiv (2023)

Link: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10401920/

2) Genkin, M., Hughes, O. and Engel, T.A. Learning non-stationary Langevin dynamics from stochastic observations of latent trajectories. Nat Commun 12, 5986 (2021).

Link: https://rdcu.be/czqGP

3) Genkin, M., Engel, T.A. Moving beyond generalization to accurate interpretation of flexible models. Nat Mach Intell 2, 674–683 (2020).

Link: https://www.nature.com/articles/s42256-020-00242-6/

Free access: https://rdcu.be/b9cW3

Installation

Package only: pip install git+https://github.com/engellab/neuralflow

Package with examples:

git clone https://github.com/engellab/neuralflow
cd neuralflow
pip install .

If you have issues with Cython extension, and want to use precomplied .c instead, open setup.py and change line 7 to USE_CYTHON = 0

GPU support

If your platform has CUDA-enabled GPU, install cupy package. Then you can use GPU device for optimization. Package passes unit tests with cupy-cuda12x==12.2.0

documentation

https://neuralflow.readthedocs.io/

Getting started

See examples

Deep dive

See tests

Core symbols most depended-on inside this repo

new_model
called by 28
neuralflow/model.py
get_grad_data
called by 16
neuralflow/gradients.py
Integrate
called by 11
neuralflow/grid.py
get_dataTR
called by 10
neuralflow/base_optimizer.py
run_optimization
called by 8
neuralflow/optimization.py
generate_data
called by 8
neuralflow/data_generation.py
peq_from_force
called by 8
neuralflow/model.py
force_from_peq
called by 8
neuralflow/model.py

Shape

Function 173
Method 133
Class 23
Enum 1

Languages

Python58%
C42%

Modules by API surface

neuralflow/c_get_gamma.c139 symbols
tests/test_gradients.py19 symbols
neuralflow/base_optimizer.py18 symbols
neuralflow/model.py16 symbols
neuralflow/optimization.py13 symbols
tests/test_optimization.py12 symbols
neuralflow/peq_models.py10 symbols
neuralflow/grid.py10 symbols
neuralflow/feature_complexity/fc_base.py9 symbols
neuralflow/PDE_Solve.py9 symbols
neuralflow/spike_data.py8 symbols
tests/test_PDESolve.py7 symbols

For agents

$ claude mcp add neuralflow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact