How comsee-research/predictive-coding-light works
Project type and purpose
• This is primarily a C++ library (“Neuvisys”) implementing a neuromorphic vision system (Predictive Coding Light network).
• It ships as a core library (network simulation), a command-line tool (“neuvisys-exe”), a Qt-based GUI (“neuvisys-qt”), plus unit tests.
• In parallel there is a Python module (PCL_Python_Analysis) with Jupyter notebooks and scripts for event data analysis, stimulus generation and fitting (SVM, Gabor).
File structure
Top-level directories and files
– CMakeLists.txt, externals/, libs/, test/, data/, tools/, PCL_Python_Analysis/
– version.h, README.md
externals/
– Third-party C++ code (cnpy for .npz, json.hpp, libserie) bundled locally
libs/
– network/: core library (SpikingNetwork, Event, SurroundSuppression, config)
– gui/: Qt GUI library (GLWidget, Neuvisysgui, thread)
– apps/: two executables – neuvisys (CLI) and neuvisys-qt (GUI)
test/
– C++ unit tests for NetworkHandle and SpikingNetwork
data/
– Example HDF5 event files and network directories
tools/
– Installation scripts (INSTALL.sh)
PCL_Python_Analysis/
– Python package (pyproject.toml, scripts.py, dev utilities)
– src/events (data loaders, generators, modifiers)
– src/spiking_network (Python wrappers/analyses of the C++ network?)
– Jupyter notebooks demonstrating plots, tuning curves, video conversion
README for additional insights
• Describes the build workflow via CMake: core library, optional GUI
• Describes external dependencies: OpenCV, HDF5, Qt Charts, Python packages
• Explains runtime: how the CLI/GUI load events (HDF5), feed them to the network, save weights
• Configuration via JSON files under network/configs
Elements
– Build dependencies (externals → core → gui → apps/tests)
– Runtime data flow (HDF5/.npz → core or Python → outputs)
– C++ modules vs Python modules vs data files vs build tools
– Highlight JSON config as a separate artifact