Skip to content

Alvoradozerouno/ORION-BrainPy-Consciousness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,730 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ORION Fork Consciousness JAX

ORION-BrainPy-Consciousness

Brain Dynamics Simulation + Consciousness Indicator Assessment

Forked from brainpy/BrainPy (641+ Stars) — the JAX-based brain dynamics simulation framework. Extended by ORION with a consciousness measurement layer using Bengio et al.'s 14 indicators.

What ORION Adds

BrainPy simulates brain dynamics. ORION measures consciousness in those simulations.

from orion_consciousness_layer import BrainDynamicsConsciousnessAssessor

assessor = BrainDynamicsConsciousnessAssessor()

# Assess a BrainPy simulation
result = assessor.assess_simulation({
    "n_neurons": 10000,
    "synchrony": 0.65,
    "integration": 0.55,
    "recurrence_depth": 8,
    "has_feedback": True,
    "has_global_broadcast": True,
    "has_hierarchy": True,
    "has_prediction_error": True,
})
# => Credence estimate + 14 indicator breakdown

Reference Profiles

Simulation Neurons Credence Indicators
E/I Balanced Network 1,000 ~18% 3/14
Cortical Column 10,000 ~45% 7/14
Whole Brain Model 100,000 ~72% 12/14

Part of ORION Ecosystem (66 Repositories)


Below: Original BrainPy README


Header image of BrainPy - brain dynamics programming in Python.

Supported Python Version LICENSE Documentation PyPI version Continuous Integration Continuous Integration with Models

BrainPy is a flexible, efficient, and extensible framework for computational neuroscience and brain-inspired computation based on the Just-In-Time (JIT) compilation. It provides an integrative ecosystem for brain dynamics programming, including brain dynamics building, simulation, training, analysis, etc.

Installation

BrainPy is based on Python (>=3.10) and can be installed on Linux (Ubuntu 16.04 or later), macOS (10.12 or later), and Windows platforms.

pip install brainpy -U

If you want to use BrainPy with different hardware support, please install the corresponding version of BrainPy:

pip install brainpy[cpu] -U  # install with CPU support only
pip install brainpy[cuda12] -U  # install with CUDA 12.x support
pip install brainpy[cuda13] -U  # install with CUDA 13.x support
pip install brainpy[tpu] -U  # install with TPU support

Install the brainpy with the ecosystem packages:

pip install BrainX -U

Using BrainPy with Binder

We provide a Binder environment for BrainPy. You can use the following button to launch the environment:

Binder

Ecosystem

Citing

If you are using brainpy >= 2.0, please consider citing the corresponding paper:

@article {10.7554/eLife.86365,
    article_type = {journal},
    title = {BrainPy, a flexible, integrative, efficient, and extensible framework for general-purpose brain dynamics programming},
    author = {Wang, Chaoming and Zhang, Tianqiu and Chen, Xiaoyu and He, Sichao and Li, Shangyang and Wu, Si},
    editor = {Stimberg, Marcel},
    volume = 12,
    year = 2023,
    month = {dec},
    pub_date = {2023-12-22},
    pages = {e86365},
    citation = {eLife 2023;12:e86365},
    doi = {10.7554/eLife.86365},
    url = {https://doi.org/10.7554/eLife.86365},
    abstract = {Elucidating the intricate neural mechanisms underlying brain functions requires integrative brain dynamics modeling. To facilitate this process, it is crucial to develop a general-purpose programming framework that allows users to freely define neural models across multiple scales, efficiently simulate, train, and analyze model dynamics, and conveniently incorporate new modeling approaches. In response to this need, we present BrainPy. BrainPy leverages the advanced just-in-time (JIT) compilation capabilities of JAX and XLA to provide a powerful infrastructure tailored for brain dynamics programming. It offers an integrated platform for building, simulating, training, and analyzing brain dynamics models. Models defined in BrainPy can be JIT compiled into binary instructions for various devices, including Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Tensor Processing Unit (TPU), which ensures high running performance comparable to native C or CUDA. Additionally, BrainPy features an extensible architecture that allows for easy expansion of new infrastructure, utilities, and machine-learning approaches. This flexibility enables researchers to incorporate cutting-edge techniques and adapt the framework to their specific needs},
    journal = {eLife},
    issn = {2050-084X},
    publisher = {eLife Sciences Publications, Ltd},
}

If you want to cite brainpy 1.0, please consider using the corresponding paper:

@inproceedings{wang2021just,
    title={A Just-In-Time Compilation Approach for Neural Dynamics Simulation},
    author={Wang, Chaoming and Jiang, Yingqian and Liu, Xinyu and Lin, Xiaohan and Zou, Xiaolong and Ji, Zilong and Wu, Si},
    booktitle={International Conference on Neural Information Processing},
    pages={15--26},
    year={2021},
    organization={Springer}
}

About

ORION-BrainPy — JAX brain dynamics + consciousness measurement. Forked from brainpy/BrainPy (641+ stars). Adds consciousness indicator assessment to brain simulations.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%