-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_Figure4.py
More file actions
24 lines (18 loc) · 803 Bytes
/
run_Figure4.py
File metadata and controls
24 lines (18 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from DataRelated.DataGenerate import ReadRawTrainDataFromFile, ReadRawTestDataFromFile
from Reliability.test_reliability_PUB import test_Reliability_PUB
from Reliability.test_reliability_moment import test_Reliability_mm
import time
## set the network size
num_node = 10
## set the reliability = 1-\beta
beta_ = 0.1
## set the data size
t1 = time.time()
NumDataSet = [10,25,50,75,100,250,500,750,1000]
num_cov = 2
for num_data in NumDataSet:
## Read raw and test data set
train_data_lst, info = ReadRawTrainDataFromFile(num_node, num_data, num_cov)
test_data = ReadRawTestDataFromFile(num_node, num_cov)
test_Reliability_PUB(train_data_lst, test_data, info, num_node, num_data, num_cov, beta_)
test_Reliability_mm(train_data_lst, test_data, info, num_node, num_data, num_cov)