File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import npyfile
7
7
8
- from timebased import calculate_features_xyz , DATA_TYPECODE
8
+ from timebased import calculate_features_xyz , DATA_TYPECODE , N_FEATURES
9
9
10
10
def compute_dataset_features (data : npyfile .Reader ,
11
11
skip_samples = 0 , limit_samples = None , verbose = 0 ):
@@ -70,7 +70,7 @@ def main():
70
70
limit_samples = None
71
71
72
72
out_typecode = 'f'
73
- n_features = 92
73
+ n_features = N_FEATURES
74
74
75
75
features_array = array .array (out_typecode , (0 for _ in range (n_features )))
76
76
Original file line number Diff line number Diff line change 4
4
import zipfile
5
5
import npyfile
6
6
import emlearn_trees
7
+ import timebased
7
8
8
9
def har_load_test_data (path ,
9
10
skip_samples = 0 , limit_samples = None ):
10
11
11
- n_features = 92
12
+ n_features = timebased . N_FEATURES
12
13
13
14
with zipfile .ZipFile (path ) as archive :
14
15
ext = '.npy'
You can’t perform that action at this time.
0 commit comments