Skip to content

Commit c9f52bb

Browse files
authored
Merge pull request #14 from le1nux/cross_validation_splitter
minor update in example notebook
2 parents 641c20f + eab9a39 commit c9f52bb

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

getting_started_example/getting_started.ipynb

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,19 @@
4444
"from data_stack.io.storage_connectors import FileStorageConnector\n"
4545
]
4646
},
47+
{
48+
"cell_type": "markdown",
49+
"metadata": {},
50+
"source": [
51+
"create file storage connector to store and retrieve the dataset"
52+
]
53+
},
4754
{
4855
"cell_type": "code",
4956
"execution_count": 12,
5057
"metadata": {},
5158
"outputs": [],
5259
"source": [
53-
"# create file storage connector to store and retrieve the dataset\n",
5460
"dataset_path = \"./datasets/\" # specify dataset path\n",
5561
"storage_connector = FileStorageConnector(root_path=dataset_path)"
5662
]
@@ -162,19 +168,34 @@
162168
},
163169
{
164170
"cell_type": "code",
165-
"execution_count": 17,
171+
"execution_count": 25,
166172
"metadata": {},
167173
"outputs": [
168174
{
169175
"name": "stdout",
170176
"output_type": "stream",
171177
"text": [
172-
"samples.pt targets.pt\n"
178+
"datasets\n",
179+
"└── mnist\n",
180+
" ├── preprocessed\n",
181+
" │   ├── test\n",
182+
" │   │   ├── samples.pt\n",
183+
" │   │   └── targets.pt\n",
184+
" │   └── train\n",
185+
" │   ├── samples.pt\n",
186+
" │   └── targets.pt\n",
187+
" └── raw\n",
188+
" ├── labels_train.gz\n",
189+
" ├── samples_test.gz\n",
190+
" ├── samples_train.gz\n",
191+
" └── targets.gz\n",
192+
"\n",
193+
"5 directories, 8 files\n"
173194
]
174195
}
175196
],
176197
"source": [
177-
"ls datasets/mnist/preprocessed/train"
198+
"!tree datasets"
178199
]
179200
},
180201
{
@@ -250,13 +271,6 @@
250271
"targets = [t for _, t, _ in mnist_iterator]\n",
251272
"Counter(targets)"
252273
]
253-
},
254-
{
255-
"cell_type": "code",
256-
"execution_count": null,
257-
"metadata": {},
258-
"outputs": [],
259-
"source": []
260274
}
261275
],
262276
"metadata": {

0 commit comments

Comments
 (0)