Skip to content

Commit f044216

Browse files
Updated curated environments in sample notebooks (Azure#1958)
* Updated curated environments in sample notebooks * Fixed continuous retraining notebook
1 parent 33ca8c7 commit f044216

File tree

6 files changed

+1529
-1531
lines changed

6 files changed

+1529
-1531
lines changed

how-to-use-azureml/automated-machine-learning/continuous-retraining/check_data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
last_train_time = datetime.min.replace(tzinfo=pytz.UTC)
3737

3838
train_ds = Dataset.get_by_name(ws, args.ds_name)
39-
dataset_changed_time = train_ds.data_changed_time
39+
dataset_changed_time = train_ds.data_changed_time.replace(tzinfo=pytz.UTC)
40+
41+
print("dataset_changed_time=" + str(dataset_changed_time))
42+
print("last_train_time=" + str(last_train_time))
4043

4144
if not dataset_changed_time > last_train_time:
4245
print("Cancelling run since there is no new data.")

how-to-use-azureml/deployment/onnx/mnist.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ def main():
9494
os.makedirs(output_dir, exist_ok=True)
9595

9696
kwargs = {'num_workers': 1, 'pin_memory': True} if use_cuda else {}
97-
# Use Azure Open Datasets for MNIST dataset
97+
# MNIST dataset
9898
datasets.MNIST.resources = [
99-
("https://azureopendatastorage.azurefd.net/mnist/train-images-idx3-ubyte.gz",
99+
("train-images-idx3-ubyte.gz",
100100
"f68b3c2dcbeaaa9fbdd348bbdeb94873"),
101-
("https://azureopendatastorage.azurefd.net/mnist/train-labels-idx1-ubyte.gz",
101+
("train-labels-idx1-ubyte.gz",
102102
"d53e105ee54ea40749a09fcbcd1e9432"),
103-
("https://azureopendatastorage.azurefd.net/mnist/t10k-images-idx3-ubyte.gz",
103+
("t10k-images-idx3-ubyte.gz",
104104
"9fb629c4189551a2d022fa330f9573f3"),
105-
("https://azureopendatastorage.azurefd.net/mnist/t10k-labels-idx1-ubyte.gz",
105+
("t10k-labels-idx1-ubyte.gz",
106106
"ec29112dd5afa0611ce80d1b7f02629c")
107107
]
108108
train_loader = torch.utils.data.DataLoader(

0 commit comments

Comments
 (0)