Skip to content

This is the implementation of paper no.9 in 2021 Soical Simulation Workshop at Academia Sinica.

Notifications You must be signed in to change notification settings

Letuvertia/network-externality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

network-externality

This is the implementation of paper no.9 in 2021 Soical Simulation Workshop at Academia Sinica. Our team (5, 擬會作社模) won the second place in the final stage of the workshop.

Paper: How Network Externalities Can Exacerbate Intergroup Inequality (DiMaggio and Garip, 2011)

Quick Start

Run by Functions

# set up
parser = ArgsModel()
args = parser.get_args()
path_to_agentInfo = "PATH/TO/CSV"
agent_data_holder = AgentDataHolder(path_to_agentInfo)

# visualize adopting progress of the experiment expNo.
visualize_3d(agent_data_holder, expNo=args.expNo)

# run all experiments 1~7 and plot results
legend_n = ["No NE", "Gen NE", "Spe NE (h=0)", "Spe NE (h=0.25)", "Spe NE (h=0.5)", "Spe NE (h=0.75)", "Spe NE (h=1.0)"]
path_to_results = run_all_exp(args, agent_data_holder)
data_dict = read_result(path_to_results)
plot_result(data_dict, legend_n, suffix)

Run in Ternimals

# visualize experiments 3
python model.py --vis --expNo 3
# run all 7 experiments, where each experiment runs 1000 trails
python model.py --run_all --n_trail 1000

Experiments Conditions

  1. No Network Externalities (NE)
  2. General NE
  3. Specific NE, h=0.0
  4. Specific NE, h=0.25
  5. Specific NE, h=0.5
  6. Specific NE, h=0.75
  7. Specific NE, h=1.0

Visualization Results

3. Specific NE, h=0.0

08_27_00_21_expNo.3.mp4

4. Specific NE, h=0.25

08_27_02_59_expNo.4.mp4

5. Specific NE, h=0.5

08_27_07_22_expNo.5.mp4

6. Specific NE, h=0.75

08_27_04_33_expNo.6.mp4

7. Specific NE, h=1.0

08_27_02_24_expNo.7.mp4

About

This is the implementation of paper no.9 in 2021 Soical Simulation Workshop at Academia Sinica.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages