Skip to content

96hoshi/fuzzy-octo-adventure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content RecSys YSocial Simulation Analysis

This repository contains the analysis code for evaluating the systemic impact of various content recommender systems within a simulated social network environment populated by LLM agents. The analysis focuses on measuring structural and behavioral outcomes such as topic diffusion, conformity, engagement momentum, and network evolution.

The input data for this analysis is generated using YSocial — a digital twin framework designed for simulating agent-driven social interactions. YSocial outputs simulation traces and interaction logs in SQLite format, which are used here to compute metrics and generate evaluation figures.

How to Run the Analysis

  1. Install dependencies:
pip install -r requirements.txt
  1. Execute to merge the SQLite outputs of interest into concatenated CSV files:
jupyter notebook notebooks/compute.ipynb
  1. Execute any notebook of interest. For example:
    • ananlysis_conformity: Measures the degree to which agents conform to the behavior of their peers.
    • analysis_follow: Analyzes changes in the follower/following social network structure over time.
    • analysis_topic_diffusion: Evaluates how topics spread through the network.
    • analysis_EM: Assesses the persistence of engagement over time.
  2. The notebooks will generate figures and tables that summarize the results of the analysis.

Project Structure

├── notebooks/              # Jupyter notebooks for analysis
│   ├── compute.ipynb              # Merge SQLite outputs into CSV
│   ├── analysis_conformity.ipynb  # Conformity analysis
│   ├── analysis_follow.ipynb      # Follower network analysis
│   ├── ...
├── src/                    # Python modules for metric computation and utilities
│   ├── db_destroyer/       
│   │   ├── conformity.py        # Conformity score computation
│   │   ├── db_parser.py         # Read and parse SQLite outputs
│   │   ├── df_utils.py          # DataFrame manipulation tools
│   │   ├── ...                  # Other utility modules
├── requirements.txt        # Python dependencies
├── setup.py                # Setup file (optional packaging)
└── README.md      

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published