Fixed hyperlink and Note sections

This commit is contained in:
Alexandra Teste 2019-03-26 17:22:20 -07:00
Родитель c05c7e1da3
Коммит afd184ac04
2 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -538,7 +538,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"> <i>Note: If we ran the cells in both the \"with an experiment\" and \"without experiment\" sections, we got 2 iterations of the same model registered on Azure. This is not a problem as any operation that we perform on the `model` object, later on, will be associated with the latest version of the model that we registered. To clean things up, we can go to the portal, select the model we do not want and click the `Delete` button. In general, we would register the model using only one of these 2 methods.</i>"
"> Note: If we ran the cells in both the \"with an experiment\" and \"without experiment\" sections, we got 2 iterations of the same model registered on Azure. This is not a problem as any operation that we perform on the `model` object, later on, will be associated with the latest version of the model that we registered. To clean things up, we can go to the portal, select the model we do not want and click the `Delete` button. In general, we would register the model using only one of these 2 methods."
]
},
{
@ -595,7 +595,7 @@
"This script must contain two required functions, `init()` and `run(input_data)`:\n",
"- In the `init()` function, we typically load the model into a global object. This function is executed only once when the Docker container is started.\n",
"- In the `run(input_data)` function, the model is used to predict a value based on the input data. The input and output of `run` typically use JSON as serialization and de-serialization format but we are not limited to that.\n",
"> <i>Note: the `run()` function here is different from the `run` object we created in our experiment</i>\n",
"> Note: the `run()` function here is different from the `run` object we created in our experiment\n",
"\n",
"This file must also be stored in the current directory."
]
@ -668,7 +668,7 @@
"\n",
"In order to make predictions on the Azure platform, it is important to create an environment as similar as possible to the one in which the model was trained. Here, we use a fast.ai pretrained model that also requires pytorch and a few other libraries. To re-create this environment, we use a [Docker container](https://www.docker.com/resources/what-container). We configure it via a yaml file that will contain all the conda dependencies needed by the model. This yaml file is a subset of `image_classification/environment.yml`.\n",
"\n",
"> <i>Note: If we had trained our model locally, we would have created a yaml file that contains the same libraries as what is installed on our local machine.</i>"
"> Note: If we had trained our model locally, we would have created a yaml file that contains the same libraries as what is installed on our local machine."
]
},
{
@ -830,7 +830,7 @@
"\n",
"To set them up properly, we need to indicate the number of CPU cores and the amount of memory we want to allocate to our web service. Optional tags and descriptions are also available for us to identify the instances in AzureML when looking at the `Compute` tab in the Azure Portal.\n",
"\n",
"> <i>Note: For production workloads, it is better to use [Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/) instead. We will demonstrate how to do this in the next notebook (to be published).</i>"
"> Note: For production workloads, it is better to use [Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/aks/) (AKS) instead. We will demonstrate how to do this in the next notebook (to be published)."
]
},
{
@ -874,7 +874,7 @@
"\n",
"Azure Container Instances have no associated ComputeTarget, so we do not specify any here. Remember, we already provided information on the number of CPUs and the amount of memory needed in the service configuration file above.\n",
"\n",
"> <i>Note: The web service creation can take a few minutes.</i>"
"> Note: The web service creation can take a few minutes"
]
},
{
@ -1170,7 +1170,7 @@
"### 8.C Workspace deletion <a id=\"wsdel\"></a>\n",
"\n",
"When we first created our workspace, 4 extra resources were automatically added to it: a [container registry](https://azure.microsoft.com/en-us/pricing/details/container-registry/), a [storage account](https://azure.microsoft.com/en-us/pricing/details/storage/blobs/), [Application Insights](https://azure.microsoft.com/en-us/pricing/details/monitor/) and a [key vault](https://azure.microsoft.com/en-us/pricing/details/key-vault/), each with its own cost. If our goal is to continue using our workspace, we should keep it available. On the contrary, if we plan on no longer using it and its associated resources, we can delete it.\n",
"> <i>Note: Deleting the workspace will delete all the experiments, outputs, models, Docker images, deployments, etc. that we created in that workspace</i>"
"> Note: Deleting the workspace will delete all the experiments, outputs, models, Docker images, deployments, etc. that we created in that workspace"
]
},
{

Просмотреть файл

@ -320,7 +320,7 @@ run.get_file_names()
model.download()
# > <i>Note: If we ran the cells in both the "with an experiment" and "without experiment" sections, we got 2 iterations of the same model registered on Azure. This is not a problem as any operation that we perform on the `model` object, later on, will be associated with the latest version of the model that we registered. To clean things up, we can go to the portal, select the model we do not want and click the `Delete` button. In general, we would register the model using only one of these 2 methods.</i>
# > Note: If we ran the cells in both the "with an experiment" and "without experiment" sections, we got 2 iterations of the same model registered on Azure. This is not a problem as any operation that we perform on the `model` object, later on, will be associated with the latest version of the model that we registered. To clean things up, we can go to the portal, select the model we do not want and click the `Delete` button. In general, we would register the model using only one of these 2 methods.
# We are all done with our model registration, so we can close our run.
@ -344,7 +344,7 @@ run
# This script must contain two required functions, `init()` and `run(input_data)`:
# - In the `init()` function, we typically load the model into a global object. This function is executed only once when the Docker container is started.
# - In the `run(input_data)` function, the model is used to predict a value based on the input data. The input and output of `run` typically use JSON as serialization and de-serialization format but we are not limited to that.
# > <i>Note: the `run()` function here is different from the `run` object we created in our experiment</i>
# > Note: the `run()` function here is different from the `run` object we created in our experiment
#
# This file must also be stored in the current directory.
@ -368,7 +368,7 @@ get_ipython().run_cell_magic(
#
# In order to make predictions on the Azure platform, it is important to create an environment as similar as possible to the one in which the model was trained. Here, we use a fast.ai pretrained model that also requires pytorch and a few other libraries. To re-create this environment, we use a [Docker container](https://www.docker.com/resources/what-container). We configure it via a yaml file that will contain all the conda dependencies needed by the model. This yaml file is a subset of `image_classification/environment.yml`.
#
# > <i>Note: If we had trained our model locally, we would have created a yaml file that contains the same libraries as what is installed on our local machine.</i>
# > Note: If we had trained our model locally, we would have created a yaml file that contains the same libraries as what is installed on our local machine.
# In[19]:
@ -448,7 +448,7 @@ print(ws.images["image-classif-resnet18-f48"].image_build_log_uri)
#
# To set them up properly, we need to indicate the number of CPU cores and the amount of memory we want to allocate to our web service. Optional tags and descriptions are also available for us to identify the instances in AzureML when looking at the `Compute` tab in the Azure Portal.
#
# > <i>Note: For production workloads, it is better to use [Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/) instead. We will demonstrate how to do this in the next notebook (to be published).</i>
# > Note: For production workloads, it is better to use [Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/aks/) (AKS) instead. We will demonstrate how to do this in the next notebook (to be published).
# In[24]:
@ -479,7 +479,7 @@ aci_config = AciWebservice.deploy_configuration(
#
# Azure Container Instances have no associated ComputeTarget, so we do not specify any here. Remember, we already provided information on the number of CPUs and the amount of memory needed in the service configuration file above.
#
# > <i>Note: The web service creation can take a few minutes.</i>
# > Note: The web service creation can take a few minutes
# In[25]:
@ -626,7 +626,7 @@ service.delete()
# ### 8.C Workspace deletion <a id="wsdel"></a>
#
# When we first created our workspace, 4 extra resources were automatically added to it: a [container registry](https://azure.microsoft.com/en-us/pricing/details/container-registry/), a [storage account](https://azure.microsoft.com/en-us/pricing/details/storage/blobs/), [Application Insights](https://azure.microsoft.com/en-us/pricing/details/monitor/) and a [key vault](https://azure.microsoft.com/en-us/pricing/details/key-vault/), each with its own cost. If our goal is to continue using our workspace, we should keep it available. On the contrary, if we plan on no longer using it and its associated resources, we can delete it.
# > <i>Note: Deleting the workspace will delete all the experiments, outputs, models, Docker images, deployments, etc. that we created in that workspace</i>
# > Note: Deleting the workspace will delete all the experiments, outputs, models, Docker images, deployments, etc. that we created in that workspace
# In[ ]: