This project simulates a social network using autonomous agents based on Large Language Models (LLMs) to study the emergence of influencers and information spread patterns.
- Having Python version greater than 3.9 and lower than 3.11.0
- Clone the repository:
git clone https://github.com/nicolastorresr/SocialNetworkSimulation.git
cd SocialNetworkSimulation
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
-
Configure the simulation parameters in
config/simulation_config.yaml
. -
Run the simulation:
python scripts/run_simulation.py
- Analyze the results:
python scripts/analyze_results.py
src/
: Contains the main source codeagents/
: Defines agent behaviors and typesnetwork/
: Implements the social network structuresimulation/
: Contains the main simulation logicanalysis/
: Includes scripts for analyzing resultsconfig/
: Contains configuration filesdata/
: Stores raw and processed data from simulationsnotebooks/
: Jupyter notebooks for data exploration and visualizationtests/
: Unit tests for various componentsscripts/
: Executable scripts for running simulations and analysis
To run the unit tests:
python -m unittest discover tests
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.