{"id":21684595,"url":"https://github.com/nengo/nengo-dl","last_synced_at":"2025-04-09T05:08:42.625Z","repository":{"id":8434562,"uuid":"58402710","full_name":"nengo/nengo-dl","owner":"nengo","description":"Deep learning integration for Nengo","archived":false,"fork":false,"pushed_at":"2025-03-18T17:52:46.000Z","size":79605,"stargazers_count":89,"open_issues_count":31,"forks_count":22,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-02T03:17:55.162Z","etag":null,"topics":["deep-learning","nengo","neural-networks","neuroscience","python","spiking-neural-networks","tensorflow"],"latest_commit_sha":null,"homepage":"https://www.nengo.ai/nengo-dl","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nengo.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-09T19:34:52.000Z","updated_at":"2024-12-01T15:28:37.000Z","dependencies_parsed_at":"2024-02-28T21:29:37.082Z","dependency_job_id":"b4fd3c90-551e-48bf-a21c-8dbb6530f962","html_url":"https://github.com/nengo/nengo-dl","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nengo%2Fnengo-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nengo%2Fnengo-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nengo%2Fnengo-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nengo%2Fnengo-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nengo","download_url":"https://codeload.github.com/nengo/nengo-dl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980837,"owners_count":21027808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","nengo","neural-networks","neuroscience","python","spiking-neural-networks","tensorflow"],"created_at":"2024-11-25T16:16:13.329Z","updated_at":"2025-04-09T05:08:42.596Z","avatar_url":"https://github.com/nengo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/pypi/v/nengo-dl.svg\n  :target: https://pypi.org/project/nengo-dl\n  :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/nengo-dl.svg\n  :target: https://pypi.org/project/nengo-dl\n  :alt: Python versions\n\n|\n\n.. image:: https://www.nengo.ai/design/_images/nengo-dl-full-light.svg\n  :target: https://www.nengo.ai/nengo-dl\n  :alt: NengoDL\n  :width: 400px\n\n***********************************\nDeep learning integration for Nengo\n***********************************\n\nNengoDL is a simulator for `Nengo \u003chttps://www.nengo.ai/nengo/\u003e`_ models.\nThat means it takes a Nengo network as input, and allows the user to simulate\nthat network using some underlying computational framework (in this case,\n`TensorFlow \u003chttps://www.tensorflow.org/\u003e`_).\n\nIn practice, what that means is that the code for constructing a Nengo model\nis exactly the same as it would be for the standard Nengo simulator.  All that\nchanges is that we use a different Simulator class to execute the\nmodel.\n\nFor example:\n\n.. code-block:: python\n\n    import nengo\n    import nengo_dl\n    import numpy as np\n\n    with nengo.Network() as net:\n        inp = nengo.Node(output=np.sin)\n        ens = nengo.Ensemble(50, 1, neuron_type=nengo.LIF())\n        nengo.Connection(inp, ens, synapse=0.1)\n        p = nengo.Probe(ens)\n\n    with nengo_dl.Simulator(net) as sim: # this is the only line that changes\n        sim.run(1.0)\n\n    print(sim.data[p])\n\nHowever, NengoDL is not simply a duplicate of the Nengo simulator.  It also\nadds a number of unique features, such as:\n\n- optimizing the parameters of a model through deep learning\n  training methods (using the Keras API)\n- faster simulation speed, on both CPU and GPU\n- automatic conversion from Keras models to Nengo networks\n- inserting  TensorFlow code (individual functions or whole\n  network architectures) directly into a Nengo model\n\nIf you are interested in NengoDL you may also be interested in\n`KerasSpiking \u003chttps://www.nengo.ai/keras-spiking/\u003e`_, a\ncompanion project to NengoDL that has a more minimal feature set but integrates\neven more transparently with the Keras API. See\n`this page \u003chttps://www.nengo.ai/keras-spiking/nengo-dl-comparison.html\u003e`_ for a more\ndetailed comparison between the two projects.\n\n**Documentation**\n\nCheck out the `documentation \u003chttps://www.nengo.ai/nengo-dl/\u003e`_ for\n\n- `Installation instructions\n  \u003chttps://www.nengo.ai/nengo-dl/installation.html\u003e`_\n- `Details on the unique features of NengoDL\n  \u003chttps://www.nengo.ai/nengo-dl/user-guide.html\u003e`_\n- `Tutorial for new users with a TensorFlow background\n  \u003chttps://www.nengo.ai/nengo-dl/examples/from-tensorflow.html\u003e`_\n- `Tutorial for new users with a Nengo background\n  \u003chttps://www.nengo.ai/nengo-dl/examples/from-nengo.html\u003e`_\n- `More in-depth examples \u003chttps://www.nengo.ai/nengo-dl/examples.html\u003e`_\n- `API reference \u003chttps://www.nengo.ai/nengo-dl/reference.html\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnengo%2Fnengo-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnengo%2Fnengo-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnengo%2Fnengo-dl/lists"}