Skip to content

Commit

Permalink
Fix multilabel notebook to work with the new scikit-learn (#2563)
Browse files Browse the repository at this point in the history
* Fix notebook

* Fix notbook gate

* Fix notebook runs

* Fix workspaces

* Fix multiclass/multilabel runs.
  • Loading branch information
nick863 authored Aug 17, 2023
1 parent 0d5a7a8 commit 8a34b52
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- .github/workflows/python-sdk-tutorial-automl-nlp-multiclass.yml
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{vars.V1_UBUNTU_RUNNER}}
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -46,14 +46,14 @@ jobs:
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZ_AE_CREDS}}
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: Run update-azure-extensions
run: |
chmod +x ./v1/scripts/update-azure-extensions.sh
./v1/scripts/update-azure-extensions.sh
shell: bash
- name: attach to workspace
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
run: az ml folder attach -w main -g azureml-examples
- name: run automl-nlp-text-classification-multiclass.ipynb
run: papermill -k python automl-nlp-text-classification-multiclass.ipynb automl-nlp-text-classification-multiclass.output.ipynb
working-directory: v1/python-sdk/tutorials/automl-with-azureml/automl-nlp-multiclass/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- .github/workflows/python-sdk-tutorial-automl-nlp-multilabel.yml
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{vars.V1_UBUNTU_RUNNER}}
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -46,14 +46,14 @@ jobs:
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZ_AE_CREDS}}
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: Run update-azure-extensions
run: |
chmod +x ./v1/scripts/update-azure-extensions.sh
./v1/scripts/update-azure-extensions.sh
shell: bash
- name: attach to workspace
run: az ml folder attach -w main-python-sdk -g azureml-examples-rg
run: az ml folder attach -w main -g azureml-examples
- name: run automl-nlp-text-classification-multilabel.ipynb
run: papermill -k python automl-nlp-text-classification-multilabel.ipynb automl-nlp-text-classification-multilabel.output.ipynb
working-directory: v1/python-sdk/tutorials/automl-with-azureml/automl-nlp-multilabel/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dependencies:
- pytorch==1.7.1
- numpy==1.18.5
- pandas~=1.1.5
- pytorch==1.12.0

- pip:
- azureml-automl-dnn-nlp==1.39.0
- azureml-automl-dnn-nlp==1.52.0
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
" y_true.append(label_set[ind] if label else \"\")\n",
" y_pred.append(label_set[ind] if predict_positive else \"\")\n",
"\n",
" print(classification_report(y_true, y_pred, label_set))"
" print(classification_report(y_true=y_true, y_pred=y_pred, labels=label_set))"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
dependencies:
- pytorch==1.7.1
- numpy==1.18.5
- pandas~=1.1.5
- pytorch==1.12.0

- pip:
- azureml-automl-dnn-nlp==1.39.0
- azureml-automl-dnn-nlp==1.52.0

0 comments on commit 8a34b52

Please sign in to comment.