File size: 799 Bytes
5dd8007
 
 
e4ecc45
 
 
0adb3ca
e4ecc45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0adb3ca
e4ecc45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
license: mit
---

please use the following code to load data:

```python
# start data loading
!git lfs install
!git clone https://huggingface.co/datasets/nlp-guild/Nonlinear-System-Identification-with-Deep-Learning

def load_dataset(path='dataset.npy'):
    """
    :return:
        f_and_xs: numpy array of size [sample_number, channels, sample_length]
        label_0, label_1, label_2: one-hot encodes of size [sample_number, number_bins]
    """

    r = np.load(path, allow_pickle=True).item()
    f_and_xs = r['f_and_xs']
    label_0 = r['l_0']
    label_1 = r['l_1']
    label_2 = r['l_2']
    return f_and_xs, label_0, label_1, label_2

f_and_xs, label_0, label_1, label_2 = load_dataset('/content/Nonlinear-System-Identification-with-Deep-Learning/dataset.npy')
# end data loading
```