From 3312a7a0c47b3e3d30f8e21dd7da070ace98f939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Tue, 8 Nov 2022 14:21:21 +0100 Subject: [PATCH 1/7] basic modelcard --- modelcard.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/modelcard.yaml b/modelcard.yaml index 7c540b1f..033d1dd3 100644 --- a/modelcard.yaml +++ b/modelcard.yaml @@ -3,6 +3,3 @@ model_details: version: name: 1.0.0 date: 2022-11-03 - run: - id: 2a84d204c6794965bc36641b46b77255 - type: mlflow From d2541a661886243a86846ed0bef656b37deb181c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Wed, 9 Nov 2022 06:26:27 +0100 Subject: [PATCH 2/7] added stakeholder concern --- .github/workflows/modelcard.yml | 7 ++++++- .rules/rules.yaml | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .rules/rules.yaml diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 1c4d4584..853fa405 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -2,7 +2,11 @@ name: modelcard-test on: pull_request: - branches: [main] + branches: + - main + push: + branches: + - demos/* workflow_dispatch: jobs: @@ -18,3 +22,4 @@ jobs: MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: modelcard: modelcard.yaml + rules: .rules diff --git a/.rules/rules.yaml b/.rules/rules.yaml new file mode 100644 index 00000000..3de8e8d2 --- /dev/null +++ b/.rules/rules.yaml @@ -0,0 +1,7 @@ +rules: + model-documentation: + message: '{{error}}' + given: '$.model_details' + then: + - function: truthy + field: documentation From 635ec9fb41c4c2fab1bc6110f80536d141ca10f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Wed, 9 Nov 2022 06:35:47 +0100 Subject: [PATCH 3/7] added documentation --- .github/workflows/modelcard.yml | 2 +- modelcard.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 853fa405..9ee3d4ce 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Check for model card file - uses: CompliancePal/modelcard-action@mlflow-action-experiments + uses: CompliancePal/modelcard-action@main env: MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: diff --git a/modelcard.yaml b/modelcard.yaml index 033d1dd3..e8c5d230 100644 --- a/modelcard.yaml +++ b/modelcard.yaml @@ -1,5 +1,7 @@ model_details: name: Wine prediction + documentation: | + I now have documentation version: name: 1.0.0 date: 2022-11-03 From 7f686a87176c31bdcb3acb182727821950e4c2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Wed, 9 Nov 2022 12:47:58 +0100 Subject: [PATCH 4/7] demo --- .github/workflows/modelcard.yml | 2 +- modelcard.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 9ee3d4ce..853fa405 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Check for model card file - uses: CompliancePal/modelcard-action@main + uses: CompliancePal/modelcard-action@mlflow-action-experiments env: MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: diff --git a/modelcard.yaml b/modelcard.yaml index e8c5d230..313fff87 100644 --- a/modelcard.yaml +++ b/modelcard.yaml @@ -5,3 +5,5 @@ model_details: version: name: 1.0.0 date: 2022-11-03 + run: + id: 7d0ad972fa5a40db90f075c5325a5611 From 3021c875cfe5e27655b33efbaed62e24d68a1b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Fri, 18 Nov 2022 12:40:58 +0200 Subject: [PATCH 5/7] Update modelcard.yml --- .github/workflows/modelcard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 853fa405..9ee3d4ce 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v3 - name: Check for model card file - uses: CompliancePal/modelcard-action@mlflow-action-experiments + uses: CompliancePal/modelcard-action@main env: MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: From a99364c64e2e6c8e4166c5413a8bbbd911d52e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Thu, 16 Feb 2023 07:19:28 +0100 Subject: [PATCH 6/7] Update modelcard.yml --- .github/workflows/modelcard.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 9ee3d4ce..86370b23 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -17,9 +17,9 @@ jobs: uses: actions/checkout@v3 - name: Check for model card file - uses: CompliancePal/modelcard-action@main + uses: CompliancePal/modelcard-action@61-action-core env: - MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} + # MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: modelcard: modelcard.yaml rules: .rules From f4ee1061b14efa3bdad0104924cb2139bf52ad54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlad=20=C8=98tirbu?= Date: Thu, 16 Feb 2023 07:20:15 +0100 Subject: [PATCH 7/7] Update modelcard.yml --- .github/workflows/modelcard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/modelcard.yml b/.github/workflows/modelcard.yml index 86370b23..c35797d9 100644 --- a/.github/workflows/modelcard.yml +++ b/.github/workflows/modelcard.yml @@ -18,7 +18,7 @@ jobs: - name: Check for model card file uses: CompliancePal/modelcard-action@61-action-core - env: + # env: # MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }} with: modelcard: modelcard.yaml