Skip to content

Commit 909a90c

Browse files
authored
Add files via upload
1 parent afb0415 commit 909a90c

5 files changed

+1832
-62
lines changed

README.md

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,13 @@
1-
use "gh_rumor_contiuous.ipynb" and "gh_rumor_plot.ipynb"
21

3-
filename with "231013034310" is the result run with following parameters:
2+
Code for the paper "Probabilistic Pursuit of the Contagion Source: Maximum-likelihood Estimation over Large Networks under Markovian Spreading Models".
43

5-
-------------
6-
ER graph,
4+
`gh_starlike_approximation_toy_examples.ipynb`: the toy examples in the paper.
75

8-
Continuous time simulation,
6+
`gh_rumor_contiuous.ipynb`: the experiments evaluating the performance for detecting rumor source in graphs.
97

10-
n_list=[50,100,150,200,250,300]
8+
`results_in_paper.pkl`: the file stores the results in the paper.
119

12-
p_list=[0.04]
13-
14-
target_infected_ratio_list=[0.1,0.2,0.3]
15-
16-
repeat_num=500
17-
18-
-------------
19-
20-
running time
21-
22-
-------------
23-
24-
current n: 50
25-
current time: 231012 01:52:41
26-
n: 50 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
27-
28-
current n: 100
29-
current time: 231012 02:00:07
30-
n: 100 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
31-
32-
current n: 150
33-
current time: 231012 02:42:23
34-
n: 150 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
35-
36-
current n: 200
37-
current time: 231012 04:43:43
38-
n: 200 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
39-
40-
current n: 250
41-
current time: 231012 08:56:10
42-
n: 250 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
43-
44-
current n: 300
45-
current time: 231012 16:16:48
46-
n: 300 p 0.04 GRAPH_TYPE: ER SIMULATION_TYPE: continous_time
47-
48-
end time: 231013 03:44:42
49-
50-
-------------
10+
`gh_rumor_plot.ipynb`: plot the results stored in `results_in_paper.pkl`.
5111

5212

5313

gh_rumor_contiuous.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,9 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"metadata": {},
7-
"outputs": [
8-
{
9-
"name": "stdout",
10-
"output_type": "stream",
11-
"text": [
12-
"Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n",
13-
"Requirement already satisfied: numpy==1.25.2 in c:\\users\\admin\\.conda\\envs\\python311\\lib\\site-packages (1.25.2)\n",
14-
"Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n",
15-
"Requirement already satisfied: networkx==3.1 in c:\\users\\admin\\.conda\\envs\\python311\\lib\\site-packages (3.1)\n",
16-
"Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n",
17-
"Requirement already satisfied: scipy==1.11.1 in c:\\users\\admin\\.conda\\envs\\python311\\lib\\site-packages (1.11.1)\n",
18-
"Requirement already satisfied: numpy<1.28.0,>=1.21.6 in c:\\users\\admin\\.conda\\envs\\python311\\lib\\site-packages (from scipy==1.11.1) (1.25.2)\n"
19-
]
20-
}
21-
],
7+
"outputs": [],
228
"source": [
239
"!pip install numpy==1.25.2\n",
2410
"!pip install networkx==3.1\n",

gh_rumor_plot.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

gh_starlike_approximation_toy_examples.ipynb

Lines changed: 1824 additions & 0 deletions
Large diffs are not rendered by default.

results_in_paper.pkl

3.33 MB
Binary file not shown.

0 commit comments

Comments
 (0)