Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/workshop_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@ 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

- 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
endpointFile: src/workshop/core/scoring/endpoint.yml
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
2 changes: 1 addition & 1 deletion .github/workflows/workshop_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workshop_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/workshop/core/scoring/deployment.yml
Original file line number Diff line number Diff line change
@@ -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-1129868 #setup replace `mlops-workshop-endpoint` with your own endpoint name defined in endpoint.yml
model: azureml:nyc_fare_prediction:1
code_configuration:
code: ./
Expand Down
2 changes: 1 addition & 1 deletion src/workshop/core/scoring/endpoint.yml
Original file line number Diff line number Diff line change
@@ -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-1129868 #setup replace `mlops-workshop-endpoint` with your own endpoint name. It has to be globally unique
auth_mode: key
4 changes: 2 additions & 2 deletions src/workshop/core/training/ml_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -100,4 +100,4 @@ def main(args):
# parse args
args = parse_args()
# run main function
main(args)
main(args)
Binary file modified src/workshop/data/linear_regression.joblib
Binary file not shown.