{"id":28076,"library":"pyaogmaneo","title":"pyaogmaneo","description":"Python bindings for the AOgmaNeo library, a spiking neural network algorithm for online learning. Current version 2.14.4. Release cadence is irregular, with occasional updates.","status":"active","version":"2.14.4","language":"python","source_language":"en","source_url":"https://github.com/ogma-aero/AOgmaNeo","tags":["neural-networks","spiking-neural-networks","online-learning","robotics"],"install":[{"cmd":"pip install pyaogmaneo","lang":"bash","label":"Standard install"}],"dependencies":[],"imports":[{"note":"Import directly from aogmaneo, not from pyaogmaneo.","symbol":"Encoders","correct":"from aogmaneo import Encoders"},{"note":"Main class for creating a hierarchical network.","symbol":"Hierarchy","correct":"from aogmaneo import Hierarchy"},{"note":"Core compute function.","symbol":"compute","correct":"from aogmaneo import compute"}],"quickstart":{"code":"from aogmaneo import Encoders, Hierarchy, compute\nimport numpy as np\n\n# Create encoders\ninput_sizes = [10]\nencoder = Encoders(1, input_sizes)\n\n# Create hierarchy\nhierarchy = Hierarchy(encoder.numOutputs, 2, 512)\n\n# Input data\ninput_data = np.random.rand(10).astype(np.float32)\n\n# Step\nencoding = encoder.encode(input_data)\nhierarchy.step(encoding, 0.01, 0.0, 0.0)\n\n# Get output\noutput = hierarchy.getOutputs()\nprint(output)","lang":"python","description":"Basic usage: create encoders and hierarchy, step with input data."},"warnings":[{"fix":"Use 'from aogmaneo import Encoders' or 'import aogmaneo'.","message":"Import as 'from aogmaneo import ...' NOT 'from pyaogmaneo import ...'. The package installs as pyaogmaneo but the module is aogmaneo.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to new API: replace Network with Hierarchy, use Encoders for input encoding.","message":"In version 2.x, the API changed significantly from 1.x. The old 'Network' and 'Layer' classes are removed. Use 'Hierarchy' and 'Encoders' instead.","severity":"breaking","affected_versions":"2.0.0 and later"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install with `pip install pyaogmaneo` and import with `import aogmaneo`.","cause":"The module name is 'aogmaneo' but the PyPI package name is 'pyaogmaneo'. Users may try `import pyaogmaneo` which is wrong.","error":"ModuleNotFoundError: No module named 'aogmaneo'"},{"fix":"Use 'Hierarchy' instead. See the quickstart example for correct usage.","cause":"The 'Network' class was removed in version 2.0.0. The old API is no longer available.","error":"ImportError: cannot import name 'Network' from 'aogmaneo'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}