Update README.md
Browse files
README.md
CHANGED
@@ -54,7 +54,7 @@ DatasetDict({"train":train, "test":test}).push_to_hub("christopher/mnist1d")
|
|
54 |
|
55 |
## Dataset Usage
|
56 |
|
57 |
-
|
58 |
|
59 |
```python
|
60 |
from datasets import load_dataset
|
@@ -63,6 +63,13 @@ test = load_dataset("christopher/mnist1d", split="test")
|
|
63 |
train_test = load_dataset("christopher/mnist1d", split="train+test")
|
64 |
```
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
## Citation
|
68 |
|
|
|
54 |
|
55 |
## Dataset Usage
|
56 |
|
57 |
+
Using the `datasets` library:
|
58 |
|
59 |
```python
|
60 |
from datasets import load_dataset
|
|
|
63 |
train_test = load_dataset("christopher/mnist1d", split="train+test")
|
64 |
```
|
65 |
|
66 |
+
Then to get the data as numpy arrays:
|
67 |
+
|
68 |
+
```python
|
69 |
+
train.set_format("numpy")
|
70 |
+
x = train["x"]
|
71 |
+
y = train["y"]
|
72 |
+
```
|
73 |
|
74 |
## Citation
|
75 |
|