WeixuanYuan
commited on
Commit
•
e4ecc45
1
Parent(s):
ef3a51e
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,27 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
please use the following code to load data:
|
6 |
+
|
7 |
+
# start data loading
|
8 |
+
!git lfs install
|
9 |
+
!git clone https://huggingface.co/datasets/nlp-guild/Nonlinear-System-Identification-with-Deep-Learning
|
10 |
+
|
11 |
+
def load_dataset(path='dataset.npy'):
|
12 |
+
"""
|
13 |
+
:return:
|
14 |
+
f_and_xs: numpy array of size [sample_number, channels, sample_length]
|
15 |
+
label_0, label_1, label_2: one-hot encodes of size [sample_number, number_bins]
|
16 |
+
"""
|
17 |
+
|
18 |
+
r = np.load(path, allow_pickle=True).item()
|
19 |
+
f_and_xs = r['f_and_xs']
|
20 |
+
label_0 = r['l_0']
|
21 |
+
label_1 = r['l_1']
|
22 |
+
label_2 = r['l_2']
|
23 |
+
return f_and_xs, label_0, label_1, label_2
|
24 |
+
|
25 |
+
f_and_xs, label_0, label_1, label_2 = load_dataset('/content/Nonlinear-System-Identification-with-Deep-Learning/dataset.npy')
|
26 |
+
# end data loading
|
27 |
+
|