JAX Field Neural Equations: a source-to-field neurophysiology engine for TFNE models.
Project description
jaxfne
jaxfne is a compact JAX package for Tensor-Field Neural Equations (TFNE): a typed computational chain from neural emitters to source tensors, field-proxy operators, probe readouts, objective reports, optimizers, and run manifests.
Install
pip install jaxfne
Visualization extras:
pip install "jaxfne[viz]"
Development checkout:
git clone https://github.com/HNXJ/jaxfne.git
cd jaxfne
pip install -e ".[dev,viz]"
Canonical import:
import jaxfne as jtfne
Objective grammar form
Config
-> Runtime(seed, dtype, backend, jit, vmap, duration_ms, dt_ms)
-> Identity(area, layer, cell_type, unit_id, position)
-> Emitter(theta_e, state_0, drive, noise, key)
-> SourceMap(source_mode, source_calibration_status, support, normalization)
-> FieldProxy(kernel, geometry_metadata, field_solver_status, field_claim_level)
-> Probe(kind, selector, channel_geometry, units_status, method)
-> Signals(spk, vm, source, lfp_proxy, csd_proxy, eeg_proxy, meg_proxy, spectrolaminar_proxy, emm_proxy)
-> Objective(metrics, targets, gates, nulls, rejection_reasons)
-> Optimizer(search_space, budget, key, constraints)
-> Manifest(run_id, version, repo_sha, runtime_report, artifact_paths, asset_hashes, truth_gates)
-> Validation(finite_outputs, strict_json, png_assets, notebook_receipts, optional_dependency_laziness)
Minimal workflow
import jaxfne as jtfne
cfg = jtfne.suite2_four_celltype_config(seed=0, duration_ms=1000.0, dt_ms=0.1)
model = jtfne.construct(cfg)
signals = jtfne.simulate(model, duration_ms=1000.0, dt_ms=0.1, seed=0)
vm_e = signals.get("vm", cell_type="E")
spk = signals.get("spk")
Checkout validation
python -m compileall -q jaxfne tests examples scripts
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH=. python -m pytest tests -q --tb=short
PYTHONPATH=. python scripts/audit_notebooks_and_assets.py --check
PYTHONPATH=. python scripts/audit_notebook_grammar.py --check
mkdocs build --strict
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jaxfne-0.3.42.tar.gz.
File metadata
- Download URL: jaxfne-0.3.42.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0efb2b66284e6efa9a9ca0cf11af4e7858765d3c4e90c1f7940ef915e414f944
|
|
| MD5 |
e6f0bb49692816e87e6a531f52040bac
|
|
| BLAKE2b-256 |
89e2aff33d8cb4590b648af7eb663cfd565319542052c3c70f180877dd68522a
|
File details
Details for the file jaxfne-0.3.42-py3-none-any.whl.
File metadata
- Download URL: jaxfne-0.3.42-py3-none-any.whl
- Upload date:
- Size: 248.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2994305fe2ca612ee9560e915729ce7ccdcb3bc6141bc9d02b96d231000178f
|
|
| MD5 |
12dacb0b26b7d8b9f23184f864eda2a2
|
|
| BLAKE2b-256 |
4b032a9396493b82d4c579b312ade115f75d3b4bfa78558cc890a52d05c9f2a7
|