From 2db57c83c2a3eca0514ce5986af586e667db1373 Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 Date: Tue, 24 Oct 2023 08:37:27 +0000 Subject: [PATCH 1/6] configurations update --- .github/workflows/workshop_unit_test.yml | 2 +- src/workshop/core/scoring/deployment.yml | 2 +- src/workshop/core/scoring/endpoint.yml | 2 +- src/workshop/data/linear_regression.joblib | Bin 5843 -> 5843 bytes 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workshop_unit_test.yml b/.github/workflows/workshop_unit_test.yml index fe6dcd59..b7bee88a 100644 --- a/.github/workflows/workshop_unit_test.yml +++ b/.github/workflows/workshop_unit_test.yml @@ -31,7 +31,7 @@ jobs: - name: Install AZ ML and tools run: | # SETUP line 34 to point to your own AML workspace az extension add -n ml -y --version 2.2.1 - az configure --defaults group=azureml workspace=ws01ent location=westus2 + az configure --defaults group=mlops-rg-1129868 workspace=aml1129868 location=eastus - name: Run Feature Engineering uses: ./.github/actions/aml-job-create with: diff --git a/src/workshop/core/scoring/deployment.yml b/src/workshop/core/scoring/deployment.yml index 29c3500c..92083bb3 100644 --- a/src/workshop/core/scoring/deployment.yml +++ b/src/workshop/core/scoring/deployment.yml @@ -1,6 +1,6 @@ $schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json name: green -endpoint_name: mlops-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name defined in endpoint.yml +endpoint_name: riya-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name defined in endpoint.yml model: azureml:nyc_fare_prediction:1 code_configuration: code: ./ diff --git a/src/workshop/core/scoring/endpoint.yml b/src/workshop/core/scoring/endpoint.yml index 611e0721..bbd957f7 100644 --- a/src/workshop/core/scoring/endpoint.yml +++ b/src/workshop/core/scoring/endpoint.yml @@ -1,3 +1,3 @@ $schema: https://azuremlschemas.azureedge.net/latest/managedOnlineEndpoint.schema.json -name: mlops-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name. It has to be globally unique +name: riya-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name. It has to be globally unique auth_mode: key diff --git a/src/workshop/data/linear_regression.joblib b/src/workshop/data/linear_regression.joblib index 52e4e85875b27df79ecb81e310695d181946eece..dd6b4f5025f13d69357aebf10142fe02d9dd5382 100644 GIT binary patch delta 443 zcmV;s0Yv`OEz>Qq;1qwaynwK6PieoW)P&Br{JB4iz%iCIAcw!B{s_je6>Yx|255Vc zvQ@vVdKwKHenh`xuxFa-U0FYx*$*~Z9cjO(B|&QZ%~HP<@G;I((LKND?=j9&(LFzt z8S1-z{2;$y@2DWuoIXG69&qT7&sV>y_2GAl_E|rf+y8~qt4M#pSb2ntC7m)qt1SZ! z8sRcOiao~45b`!ZN*P9DqVOZXUXFFjJ<0GsM!pLost`cG|M*X@Q1B1GSgrA)XrVGc zlMxJWgF7rg2#Y;@Dy2WaV`-2aL(UPuW38A7e2g-`(IE}{S!f?WLpH1CA$Tyq_zeW! z|M2?0elr7{_o{y%KW#Qb?X5K?Kl3reT#%AIKW79YQ9nB&zfb=UdlFq5zkOxvaIHU1 zzZ(8i_>ICGKb9G8g1Lk@zweQ4M>%^+zf~WCFEI}`KmAVfzW>M`Kdb=D;_ZGaztbQ( zx3?odKX)3t#rJbdKbrO-oXwg?KUMWp_ki&+zaS3BH-rmtO1vNr$2WvQq;1qw0V{6vtyjH(Ol{G&QTBtv`MO3FWg&x1YR2ZxiW1BxSn2|;- zZ9l*Kp9*IGI6gn+P{m}CZAU;qJ_vb1 z6=fH{%L4?T9-A`1BA!Vdl&CR3sA^z~xFsV$LWf5gM^!OD0k>J*<+~@pQCvZr?!qp= z`g&F2&@LRmKXcdK{+sqb!p;2QooOY%zL7->m^C23bDO*s>NiI}ZFxA!C%Q4e|8&9L zb!+cFq|PG=KW=|OKU@474}y~+zazV|_&XXPzoQBIY!wVWqKjgGzvX6TyKM@9n-NLLOzbK|i1qS9Rzx9(krymOhDm?X*I;S55Dm;^D7DywK lk|+rEy(&PIhLlp2Xdq}Ibz+8;WoRQ#Xda1ZAZQ_VVlFWC%BcVV From 586197db9a2e01e1289ca485947a8d6510e20826 Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 Date: Tue, 24 Oct 2023 08:53:41 +0000 Subject: [PATCH 2/6] a short summary of changes made- put your own comments here --- .github/workflows/workshop_ci.yml | 2 +- src/workshop/core/training/ml_training.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workshop_ci.yml b/.github/workflows/workshop_ci.yml index 66a2799a..1b853d82 100644 --- a/.github/workflows/workshop_ci.yml +++ b/.github/workflows/workshop_ci.yml @@ -32,7 +32,7 @@ jobs: - name: Install az ml & set default values for AML run: | #setup: provide group, workspace and location az extension add -n ml -y --version 2.2.1 - az configure --defaults group=azureml workspace=ws01ent location=westus2 + az configure --defaults group=mlops-rg-1129868 workspace=aml1129868 location=eastus - name: run training and model validation run: | az ml job create -s -f src/workshop/core/pipelines/training_pipeline.yml diff --git a/src/workshop/core/training/ml_training.py b/src/workshop/core/training/ml_training.py index 6f59dcdd..c85b8ad5 100644 --- a/src/workshop/core/training/ml_training.py +++ b/src/workshop/core/training/ml_training.py @@ -43,7 +43,7 @@ def createClassModel(algo_name, catg, nums): #--------------------------------------------- #setup: Update alpha value #--------------------------------------------- - model = Ridge(alpha=100000) #setup + model = Ridge(alpha=100) #setup elif algo_name == 'random_forest': model = RandomForestRegressor() else: @@ -100,4 +100,4 @@ def main(args): # parse args args = parse_args() # run main function - main(args) \ No newline at end of file + main(args) From 77bc8aa2e8cd5f4debda5fc4b92c8e29a9f6eab9 Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 <80264412+github-cloudlabsuser-081@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:35:18 +0000 Subject: [PATCH 3/6] Update endpoint.yml --- src/workshop/core/scoring/endpoint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workshop/core/scoring/endpoint.yml b/src/workshop/core/scoring/endpoint.yml index bbd957f7..af4e89e6 100644 --- a/src/workshop/core/scoring/endpoint.yml +++ b/src/workshop/core/scoring/endpoint.yml @@ -1,3 +1,3 @@ $schema: https://azuremlschemas.azureedge.net/latest/managedOnlineEndpoint.schema.json -name: riya-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name. It has to be globally unique +name: riya-workshop-endpoint-1129868 #setup replace `mlops-workshop-endpoint` with your own endpoint name. It has to be globally unique auth_mode: key From 07c1dd630552780764fd6518dbb3bebfe8c8e030 Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 <80264412+github-cloudlabsuser-081@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:35:58 +0000 Subject: [PATCH 4/6] Update deployment.yml --- src/workshop/core/scoring/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workshop/core/scoring/deployment.yml b/src/workshop/core/scoring/deployment.yml index 92083bb3..be483db1 100644 --- a/src/workshop/core/scoring/deployment.yml +++ b/src/workshop/core/scoring/deployment.yml @@ -1,6 +1,6 @@ $schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json name: green -endpoint_name: riya-workshop-endpoint #setup replace `mlops-workshop-endpoint` with your own endpoint name defined in endpoint.yml +endpoint_name: riya-workshop-endpoint-1129868 #setup replace `mlops-workshop-endpoint` with your own endpoint name defined in endpoint.yml model: azureml:nyc_fare_prediction:1 code_configuration: code: ./ From 3fd78cb2efb61f0dacf120f256dbcab912996c70 Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 <80264412+github-cloudlabsuser-081@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:38:52 +0000 Subject: [PATCH 5/6] Update workshop_cd.yml --- .github/workflows/workshop_cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workshop_cd.yml b/.github/workflows/workshop_cd.yml index df3e7214..f65960d4 100644 --- a/.github/workflows/workshop_cd.yml +++ b/.github/workflows/workshop_cd.yml @@ -42,8 +42,8 @@ jobs: - name: Run deployment uses: ./.github/actions/aml-endpoint-deploy with: - resourceGroup: azureml #setup replace azureml with the name of your resource group in Azure - workspaceName: ws01ent #setup replace ws01ent with the name of your workspace in Azure + resourceGroup: mlops-rg-1129868 #setup replace azureml with the name of your resource group in Azure + workspaceName: aml1129868 #setup replace ws01ent with the name of your workspace in Azure endpointFile: src/workshop/core/scoring/endpoint.yml deploymentFile: src/workshop/core/scoring/deployment.yml modelVersion: latest @@ -61,4 +61,4 @@ jobs: with: resourceGroup: azureml #setup replace azureml with the name of your resource group in Azure workspaceName: ws01ent #setup replace ws01ent with the name of your workspace in Azure - endpointFile: src/workshop/core/scoring/endpoint.yml \ No newline at end of file + endpointFile: src/workshop/core/scoring/endpoint.yml From 2f0bbcdd2ccb3957cd3dd05a72283110e109518b Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-081 <80264412+github-cloudlabsuser-081@users.noreply.github.com> Date: Tue, 24 Oct 2023 11:18:30 +0000 Subject: [PATCH 6/6] Update workshop_cd.yml --- .github/workflows/workshop_cd.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workshop_cd.yml b/.github/workflows/workshop_cd.yml index f65960d4..75ee7402 100644 --- a/.github/workflows/workshop_cd.yml +++ b/.github/workflows/workshop_cd.yml @@ -51,14 +51,14 @@ jobs: - name: Test deployment uses: ./.github/actions/aml-endpoint-test with: - resourceGroup: azureml #setup replace azureml with the name of your resource group in Azure - workspaceName: ws01ent #setup replace ws01ent with the name of your workspace in Azure + resourceGroup: mlops-rg-1129868 #setup replace azureml with the name of your resource group in Azure + workspaceName: aml1129868 #setup replace ws01ent with the name of your workspace in Azure endpointFile: src/workshop/core/scoring/endpoint.yml requestFile: src/workshop/core/scoring/scoring_test_request.json - name: Swap deployment uses: ./.github/actions/aml-endpoint-swap with: - resourceGroup: azureml #setup replace azureml with the name of your resource group in Azure - workspaceName: ws01ent #setup replace ws01ent with the name of your workspace in Azure + resourceGroup: mlops-rg-1129868 #setup replace azureml with the name of your resource group in Azure + workspaceName: aml1129868 #setup replace ws01ent with the name of your workspace in Azure endpointFile: src/workshop/core/scoring/endpoint.yml