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
7 changes: 6 additions & 1 deletion .github/workflows/manual-trigger-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Manually trigger an Azure Machine Learning job

on:
workflow_dispatch:

pull_request:
branches:
- main
jobs:
train:
runs-on: ubuntu-latest
Expand All @@ -15,4 +17,7 @@ jobs:
uses: azure/login@v2
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
- name: Run Azure Machine Learning training job
run: az ml job create -f src/job.yml --stream --resource-group ${{vars.AZURE_RESOURCE_GROUP}} --workspace-name ${{vars.AZURE_WORKSPACE_NAME}}

# Test test
2 changes: 1 addition & 1 deletion .github/workflows/train-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
--set inputs.training_data.path=azureml:diabetes-dev-folder@latest \
--stream | tee training_output.log

- name: Extract dev metrics from logs
- name: Extract dev metrics from logs # Test
id: parse-metrics
run: |
if [ ! -f training_output.log ]; then
Expand Down
4 changes: 2 additions & 2 deletions src/job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ command: >-
--metrics_output ${{outputs.metrics_output}}
inputs:
training_data:
type: <uri_file_or_uri_folder>
path: <azureml:data-asset-name@latest>
type: uri_file
path: azureml:diabetes-data@latest
reg_rate: 0.01
outputs:
metrics_output:
Expand Down