- Objectives
- Use Mneme CLI to generate synthetic data and run the bioelectric pipeline
- Explore topology backends and attractor options
- Time: 45–60 minutes
mneme generate -o data/synthetic/quickstart.npz -t bioelectric -s 64,64 --timesteps 10 --seed 7mneme analyze data/synthetic/quickstart.npz \
--pipeline bioelectric \
--topology-backend cubical \
-o results_cliExpected: results_cli/analysis_results.hdf5
mneme visualize results_cli/analysis_results.hdf5 -o plots -f pngExpected: plots/dashboard.png with field, topology, and any attractor summaries.
If you prefer Python, you can also drive visualization programmatically:
from mneme.utils.io import load_results
from mneme.analysis.visualization import FieldVisualizer
from mneme.types import AnalysisResult, Field
ar = load_results('results_cli/analysis_results.hdf5') # returns AnalysisResult
FieldVisualizer().create_analysis_dashboard(ar)- Rips (point-cloud):
mneme analyze data/synthetic/quickstart.npz \
--pipeline bioelectric \
--topology-backend rips \
-o results_cli_rips- Disable attractors:
mneme analyze data/synthetic/quickstart.npz --attractor-method none -o results_noattr- Compare cubical vs rips outputs (feature vector length; diagram counts)
- Increase
--attractor-thresholdand note changes in detected attractors - Try
--attractor-method clusteringwith--attractor-min-samples 20
Solutions (outline)
- Cubical operates directly on grids; Rips requires point-cloud conversion and may produce different diagram sparsity
- Higher thresholds reduce recurrence connections → fewer attractors
- Clustering groups dense regions; raising min_samples filters small basins