Riverside - Usa world news - REMMONT.COM

Всё подряд, без разбора, но про САМБО. Разбор завалов по ходу.
Ответить
IZRAELEa
m
m
Сообщения: 830
Зарегистрирован: 25 июл 2019, 19:18
Откуда: USA
Контактная информация:

Riverside - Usa world news - REMMONT.COM

Сообщение IZRAELEa » 20 май 2021, 05:02

Azure ml ops - Kabrinskiy Eduard


<h1>Azure ml ops</h1>
<p>[youtube]</p>
Azure ml ops <a href="http://remmont.com">Today's news headlines in english</a> Azure ml ops
<h1>Creating End-to-End MLOps pipelines using Azure ML and Azure Pipelines - Part 5</h1>
<p>In this 7-part series of posts we?ll be creating a minimal, repeatable MLOps Pipeline using Azure ML and Azure Pipelines.</p>
<p>In this series we?ll be covering:</p>
<p><em>Quick disclaimer: At the time of writing, I am currently a Microsoft Employee</em></p>
<h1>Part 5 ? Model Training Pipeline</h1>
<p>Now that we have our data and environment set up, we can start to train our model.</p>
<p>To do this, we?ll now create a model training pipeline to train our machine learning model and register it to Azure ML Models.</p>
<p>In this pipeline we set up the compute node we?ll be using for training and, on this compute node, we pull in the environment we set up in the previous pipeline. We also mount the datastore we registered in our data pipeline for training our model.</p>
<p>For simplicity?s sake, we?ll be training a logistic regression model. After training the model, we?ll register it to Azure Machine Learning.</p>
<p>Although our data isn?t changing in this case, in a real-life scenario, we?ll likely be having new data coming in that we can use for retraining the model to ensure the model keeps up with any changes in the underlying data.</p>
<p>As such, we?ll have this pipeline on a schedule to retrain the model once per week.</p>
<p style="clear: both"><img src="https://benalexkeen.com/wp-content/uplo ... peline.png" /></p>
<h2>Pipeline definition</h2>
<p>Just as our other pipelines so far, our Azure Pipeline will be set up as a yaml file.</p>
<p>In our git repository, this can be found in the root of the repository as train_pipeline.yml .</p>
<p>Let?s take a look at this yaml file and then we?ll explain what?s happening at each step, it?ll be following the same template as our last two pipelines:</p>
<p>So if we take a dive into at what?s happening here:</p>
<h4>Schedules</h4>
<p>First, the CI trigger is turned off, so that this Pipeline isn?t run every time the code is updated.</p>
<p>There is a cron schedule that runs at 00:00 every Sunday on the master branch. Just as with the data pipeline this pipeline is always run, regardless of whether there are code changes, as the data may have changed.</p>
<p>As with our previous pipelines, we have set up a pipeline with a single stage, with a single job on an Ubuntu 16.04 base image.</p>
<p>Variables are extracted from the variable groups we set up in our resource set up in Azure DevOps.</p>
<h4>Steps</h4>
<p>After setting the python version, there are only two steps here.</p>
<p>First we install the python package requirements on our pipeline compute.</p>
<p>After we?ve installed the requirements, we run src/my_custom_package/create_aml_experiment.py , this will submit an Azure ML experiment run. Upon submitting the run, a training script is run on a training compute node and this will train the model and register the resulting model on Azure Machine Learning.</p>
<h3>Run Azure ML Experiment</h3>
<p>In the main function of our create_aml_experiment.py python script, we run submit_run .</p>
<p>This will submit an experiment run, the code for this is below.</p>
<p>First we instantiate an Azure ML Experiment object, providing our Azure ML Workspace object and experiment name.</p>
<p>We then define a run configuration. We will be running a script on our AML training compute node. The script we?ll be running is train.py , which we will examine below, and the source directory for which this script is held is the same directory as create_aml_experiment.py .</p>
<p>As part of this run configuration, we also define a compute node, we?ve chosen a standard D2_V2 machine here. The full range of virtual machines available on can be viewed here, including GPU-enabled machines.</p>
<p>We then retrieve the environment we created in our Environment Pipeline, with our custom package installed by providing the Workspace object and the environment name.</p>
<p>Now we?re ready to submit the run, so we submit the experiment run and wait for it to complete. The console output will be displayed as the run waits for completion. Any metrics from the run are then printed once the run is complete.</p>
<h3>train.py</h3>
<p>Our training script is a simple one, it can be found in the repository at src/my_custom_package/train.py .</p>
<p>In our main function, we can see that the script:</p>
<p><ul>
<li>Retrieves the data from the mounted datastore from our Azure ML Workspace</li>
<li>Trains a simple classifier model (logistic regression)</li>
<li>Logs the evaluation metrics to Azure Machine Learning (F1 score)</li>
<li>Saves the model locally</li>
<li>Uploads the model and registers it to Azure ML models.</li>
</ul>
</p>
<h2>Set Up Pipeline on Azure DevOps</h2>
<p>We?ll set up the pipeline on Azure DevOps in the exact same manner as we did in part 3 of this series of posts for the data pipeline. For screenshots, refer to that post.</p>
<p><ul>
<li>Go to your Azure DevOps Project</li>
<li>Select Pipelines from the left hand blade</li>
<li>Click the button for ?New Pipeline?</li>
<li>Select the ?Azure Repos Git? option</li>
<li>Select your repository</li>
<li>On the configure tab, select ?Existing Azure Pipelines YAML File?</li>
<li>Select ?/train_pipeline.yml? as the path to your yaml file and click ?Continue?</li>
<li>After reviewing, click ?Run?</li>
</ul>
</p>
<p>The first time you run this, it can take up to 15 minutes. You may need to accept the provision of permissions for this pipeline, afterwards you should see an output similar to below:</p>
<p style="clear: both"><img src="https://benalexkeen.com/wp-content/uplo ... ne_job.png" /></p>
<p>Rename your pipeline to ?Training-Pipeline? by selecting the ellipsis next to the pipeline and choosing ?Rename/move?.</p>
<h2>Azure ml ops</h2>

<h3>Azure ml ops</h3>
<p>[youtube]</p>
Azure ml ops <a href="http://remmont.com">Newspaper headlines</a> Azure ml ops
<h4>Azure ml ops</h4>
Creating End-to-End MLOps pipelines using Azure ML and Azure Pipelines - Part 5 In this 7-part series of posts we?ll be creating a minimal, repeatable MLOps Pipeline using Azure ML and Azure
<h5>Azure ml ops</h5>
Azure ml ops <a href="http://remmont.com">Azure ml ops</a> Azure ml ops
SOURCE: <h6>Azure ml ops</h6> <a href="https://dev-ops.engineer/">Azure ml ops</a> Azure ml ops
#tags#[replace: -,-Azure ml ops] Azure ml ops#tags#
https://ssylki.info/?who=remmont.com/4th-ave-jail-2 https://ssylki.info/?who=3-bedroom-for-rent.remmont.com https://ssylki.info/?who=small-personal ... emmont.com https://ssylki.info/?who=travel-insuran ... emmont.com https://ssylki.info/?who=automobile-ins ... emmont.com
Arguments: all bank credit card offers
Fresh News.

Ответить

Вернуться в «Общие вопросы | General questions»