-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworksheet_single_run.py
73 lines (62 loc) · 2.38 KB
/
worksheet_single_run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from simulation import Simulation
import agent as ag
condition = "I"
ag.initial_trust_human_to_AI = 0.5
ag.update_up_alfa_human_to_AI = 0.01
ag.update_down_beta_human_to_AI = 0.01
s = Simulation(the_same_initial_temp_everywhere=False,
is_bidirectional=False,
periods=300,
agents=100,
neighbours=5,
grid_state=5,
random_state=5)
s.run()
s.draw_chart_agents(f"Single_run_{condition}_1_agents")
s.draw_chart_readings_over_time(condition)
s.draw_chart_readings_over_time_separate_types(condition)
s.draw_chart_error_wrt_ground_truth(condition)
s.draw_chart_error_wrt_ground_truth_separate_types(condition)
s.draw_chart_experts(condition)
s.draw_chart_readings_taken_from_agent_type(condition)
s.draw_chart_readings_taken_from_agent_type_by_humans(condition)
condition = "II"
ag.initial_trust_human_to_AI = 0.2
ag.update_up_alfa_human_to_AI = 0.01
ag.update_down_beta_human_to_AI = 0.1
s = Simulation(the_same_initial_temp_everywhere=False,
is_bidirectional=False,
periods=300,
agents=100,
neighbours=5,
grid_state=5,
random_state=5)
s.run()
s.draw_chart_agents(f"Single_run_{condition}_1_agents")
s.draw_chart_readings_over_time(condition)
s.draw_chart_readings_over_time_separate_types(condition)
s.draw_chart_error_wrt_ground_truth(condition)
s.draw_chart_error_wrt_ground_truth_separate_types(condition)
s.draw_chart_experts(condition)
s.draw_chart_readings_taken_from_agent_type(condition)
s.draw_chart_readings_taken_from_agent_type_by_humans(condition)
condition = "III"
ag.initial_trust_human_to_AI = 0.8
ag.update_up_alfa_human_to_AI = 0.005
ag.update_down_beta_human_to_AI = 0.1
s = Simulation(the_same_initial_temp_everywhere=False,
is_bidirectional=False,
periods=300,
agents=100,
neighbours=5,
grid_state=5,
random_state=5)
s.run()
s.draw_chart_agents(f"Single_run_{condition}_1_agents")
s.draw_chart_readings_over_time(condition)
s.draw_chart_readings_over_time_separate_types(condition)
s.draw_chart_error_wrt_ground_truth(condition)
s.draw_chart_error_wrt_ground_truth_separate_types(condition)
s.draw_chart_experts(condition)
s.draw_chart_readings_taken_from_agent_type(condition)
s.draw_chart_readings_taken_from_agent_type_by_humans(condition)