The goal of this project is to simulate a neural network that evolves in time using the Hopfield network.
- python >= 3.10.6
- numpy
- matplotlib
- pytest
- os
To install numpy:
pip install numpy
There might be issues with MacOS in installing numpy, if so consult:
To install matplotlib :
pip install matplotlib
To install pytest:
pip install -U pytest
To install pip:
main.py: where the functions are called, where the project is runfunctions.py: where the functions are writtenfunctions_test.py: where the functions are tested
In main.py line 82, the path must be changed to the directory of each person
In terminal and in directory:
`pytest'
If tests do not run, or there are errors (for debugging):
pytest --full-trace
In test_functions.py, test_functions_doctest will run the tests for doctests => testting of doctests in pytest
- run
functions.py - run
test_functions.py - run
main.py - run pytest
This is what the energy functions could look like: HebbianEnergy.png