@@ -200,30 +200,30 @@ print(service.scoring_uri)
200
200
201
201
1 . Download the test data. In this case, it' s saved into a directory called *data*.
202
202
203
- ```python
204
- import os
205
- from azureml.core import Dataset
206
- from azureml.opendatasets import MNIST
207
-
208
- data_folder = os.path.join(os.getcwd(), ' data' )
209
- os.makedirs(data_folder, exist_ok = True )
210
-
211
- mnist_file_dataset = MNIST .get_file_dataset()
212
- mnist_file_dataset.download(data_folder, overwrite = True )
213
- ```
203
+ ```python
204
+ import os
205
+ from azureml.core import Dataset
206
+ from azureml.opendatasets import MNIST
207
+
208
+ data_folder = os.path.join(os.getcwd(), ' data' )
209
+ os.makedirs(data_folder, exist_ok = True )
210
+
211
+ mnist_file_dataset = MNIST .get_file_dataset()
212
+ mnist_file_dataset.download(data_folder, overwrite = True )
213
+ ```
214
214
215
215
1 . Load the test data from the * data* directory.
216
216
217
- ```python
218
- from utils import load_data
219
- import os
220
- import glob
221
-
222
- data_folder = os.path.join(os.getcwd(), ' data' )
223
- # note we also shrink the intensity values (X) from 0-255 to 0-1. This helps the neural network converge faster
224
- X_test = load_data(glob.glob(os.path.join(data_folder," **/t10k-images-idx3-ubyte.gz" ), recursive = True )[0 ], False ) / 255.0
225
- y_test = load_data(glob.glob(os.path.join(data_folder," **/t10k-labels-idx1-ubyte.gz" ), recursive = True )[0 ], True ).reshape(- 1 )
226
- ```
217
+ ```python
218
+ from utils import load_data
219
+ import os
220
+ import glob
221
+
222
+ data_folder = os.path.join(os.getcwd(), ' data' )
223
+ # note we also shrink the intensity values (X) from 0-255 to 0-1. This helps the neural network converge faster
224
+ X_test = load_data(glob.glob(os.path.join(data_folder," **/t10k-images-idx3-ubyte.gz" ), recursive = True )[0 ], False ) / 255.0
225
+ y_test = load_data(glob.glob(os.path.join(data_folder," **/t10k-labels-idx1-ubyte.gz" ), recursive = True )[0 ], True ).reshape(- 1 )
226
+ ```
227
227
228
228
# # Make encrypted predictions
229
229
0 commit comments