diff --git a/.github/workflows/workshop_cd.yml b/.github/workflows/workshop_cd.yml index df3e7214..75ee7402 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 @@ -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 - endpointFile: src/workshop/core/scoring/endpoint.yml \ No newline at end of file + 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 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/.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..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: 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: ./ diff --git a/src/workshop/core/scoring/endpoint.yml b/src/workshop/core/scoring/endpoint.yml index 611e0721..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: 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 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) diff --git a/src/workshop/data/linear_regression.joblib b/src/workshop/data/linear_regression.joblib index 52e4e858..dd6b4f50 100644 Binary files a/src/workshop/data/linear_regression.joblib and b/src/workshop/data/linear_regression.joblib differ