Ladbaby commited on
Commit
f7482b8
·
verified ·
1 Parent(s): 793f3e9

Upload PAM

Browse files
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ PAMdata/processed_data/AR_8p_8c.mat filter=lfs diff=lfs merge=lfs -text
PAMdata/process_scripts/Generate_splitID.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ # arr_outcomes = np.load('../processed_data/arr_outcomes.npy', allow_pickle=True)
4
+
5
+ # split randomization over folds
6
+ """Use 9:1:1 split"""
7
+ p_train = 0.80
8
+ p_val = 0.10
9
+ p_test = 0.10
10
+
11
+
12
+ n = 11988 # original 12000 patients, remove 12 outliers
13
+ n_train = round(n*p_train)
14
+ n_val = round(n*p_val)
15
+ n_test = n - (n_train+n_val)
16
+ print(n_train, n_val, n_test)
17
+ Nsplits = 5
18
+ for j in range(Nsplits):
19
+ p = np.random.permutation(n)
20
+ idx_train = p[:n_train]
21
+ idx_val = p[n_train:n_train+n_val]
22
+ idx_test = p[n_train+n_val:]
23
+ np.save('../splits/phy12_split'+str(j+1)+'.npy', (idx_train, idx_val, idx_test))
24
+
25
+ # np.save('../splits/phy12_split_subset'+str(j+1)+'.npy', (idx_train, idx_val, idx_test))
26
+ print('split IDs saved')
27
+
28
+ # # check first split
29
+ # idx_train,idx_val,idx_test = np.load('../splits/phy12_split1.npy', allow_pickle=True)
30
+ # print(len(idx_train), len(idx_val), len(idx_test))
PAMdata/processed_data/AR_8p_8c.mat ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f41ecd2016abf9f3e80fc042e13be809837daf217544ed86cdbe941addf32174
3
+ size 498862643
PAMdata/processed_data/PTdict_list.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15e90678e97dcf4dfe712f5cbd136e18be27638cfa75602f8779a7a7f7644696
3
+ size 435172928
PAMdata/processed_data/arr_outcomes.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe01a1e479b58521f1a16bf8d310a5b3fcf5d62ab24d1cad3e863c7c06324682
3
+ size 42792
PAMdata/processed_data/readme ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ AR_6p_8c.mat, AR_8p_8c.mat
2
+
3
+ # # PAMAP2 120,000 samples for 6 or 8 subjects. 20,000 samples for each sub. 51 features, 8 activities(0-7)
4
+ feature = sc.loadmat("/home/xiangzhang/matlabwork/AR_6p_8c.mat")
5
+ all = feature['AR_6p_8c']
PAMdata/splits/PAMAP2_split_1.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:024289c60c194e1ff1e7075a36f607d9d5e7474e152d2fa5038c950ec226778e
3
+ size 21781
PAMdata/splits/PAMAP2_split_2.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61e863de0f36ff9e85e1fd761a48bcbcb1b345739778e1c9f3ace84139dc01b
3
+ size 21781
PAMdata/splits/PAMAP2_split_3.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f6ee159905e66865bcf370c89abea91351d27dd112012d3d819f6a06c8ca959
3
+ size 21781
PAMdata/splits/PAMAP2_split_4.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3e9b69dd7d65b0f4ec26846f79d9becdf9a83f99c4fb3f976be3fc2d96ff921
3
+ size 21781
PAMdata/splits/PAMAP2_split_5.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e4d1c88df8619cccf1feaa2b3ab30a5e58f76254e8e1a854634a2a38eb8282f
3
+ size 21781