Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
77011d6
Moved the introductory notebooks to their own PR
validbeck Mar 28, 2025
a267d30
Renamed the old model development series
validbeck Mar 28, 2025
575711f
Renamed the new model validation series
validbeck Mar 28, 2025
ed1956d
Merge 'main' into beck/sc-9378/create-validmind-for-model-validation-…
validbeck Mar 28, 2025
5f30adb
Exporting the champion model
validbeck Mar 28, 2025
c8df5e7
Editing validation 1
validbeck Mar 28, 2025
4cc6d63
Adjusting
validbeck Mar 28, 2025
a1b9ad9
Test
validbeck Mar 28, 2025
7faf0bb
WIP new validator 2
validbeck Mar 28, 2025
ad9f0e7
copying some code into validator 2
validbeck Mar 28, 2025
8cec0c1
Ugh
validbeck Mar 28, 2025
d8607d8
I give up for this week
validbeck Mar 28, 2025
477f9c6
Merge 'main' beck/sc-9378/create-validmind-for-model-validation-series
validbeck Apr 1, 2025
1c7b819
Validation 2 - Verify data quality assessments setup
validbeck Apr 2, 2025
d2057d6
Merge 'main' into beck/sc-9378/create-validmind-for-model-validation-…
validbeck Apr 2, 2025
a582003
Validation 2 - Verify data quality assessments editing
validbeck Apr 2, 2025
5ca1a38
Validation 2 - Document test results WIP
validbeck Apr 2, 2025
2411ae5
Validation 2 - Document test results - add
validbeck Apr 2, 2025
ffb1486
Validation 3 - setup
validbeck Apr 2, 2025
e63b94a
Validation 3 - Setting up WIP
validbeck Apr 2, 2025
04e5196
Validation 3 - Testing...
validbeck Apr 2, 2025
913e4d1
Save point
validbeck Apr 2, 2025
87f4e09
Save point
validbeck Apr 2, 2025
750e09c
Save point
validbeck Apr 2, 2025
8070d6d
Testing something
validbeck Apr 3, 2025
1264ed6
Testing more
validbeck Apr 3, 2025
8d73b96
Applying Andres' fixes
validbeck Apr 3, 2025
3efcc33
Validation 4 setup
validbeck Apr 4, 2025
0a425e5
Testing
validbeck Apr 4, 2025
7bfabdb
Applying changes to subsequent notebooks
validbeck Apr 4, 2025
fe91a70
Deleting old draft for validation 2
validbeck Apr 4, 2025
4504233
Save point
validbeck Apr 4, 2025
bf5fed3
Save point
validbeck Apr 4, 2025
a57af56
Merge 'main' into beck/sc-9378/create-validmind-for-model-validation-…
validbeck Apr 4, 2025
d865c83
Save point
validbeck Apr 4, 2025
bf6375a
Save point
validbeck Apr 4, 2025
e2a18a9
Testing?
validbeck Apr 4, 2025
d970d9b
Testing...
validbeck Apr 4, 2025
8a5df0c
Editing...
validbeck Apr 4, 2025
c76d446
Changing screencaps
validbeck Apr 4, 2025
db8abc4
Save point
validbeck Apr 4, 2025
23cf3fc
Editing......
validbeck Apr 4, 2025
59e9e35
Validation 2 cleanup
validbeck Apr 4, 2025
a2eb321
Validataion 3 editing
validbeck Apr 4, 2025
77bd988
Save point
validbeck Apr 4, 2025
a8199de
Save point
validbeck Apr 4, 2025
2cea9e3
Save point
validbeck Apr 4, 2025
3e2a384
Save point
validbeck Apr 4, 2025
d65c263
Validation 3 log a finding
validbeck Apr 4, 2025
cc6af3b
Validation 3 Adjusted test
validbeck Apr 4, 2025
a95ba24
Validation 3 finding recommendation
validbeck Apr 5, 2025
bbf7551
Validation 3 more tests
validbeck Apr 5, 2025
d6d0db6
Moving split dataset
validbeck Apr 5, 2025
adfa391
Validation 4 Setting up
validbeck Apr 5, 2025
f5139c1
Validation 4 Summary & next steops
validbeck Apr 5, 2025
c76c45e
Copied custom test stuff over
validbeck Apr 5, 2025
2528d83
Copied over verify test runs, adjusted next steps
validbeck Apr 5, 2025
edc424f
Deleting old notebook
validbeck Apr 5, 2025
d133d6a
Validation 4 Editing custom tests
validbeck Apr 7, 2025
8c803dd
Validation 4 Custom inline test pt1
validbeck Apr 7, 2025
6f06b77
Validation 4 Custom inline test pt2
validbeck Apr 7, 2025
050a2be
Validation 4 Custom inline test pt3
validbeck Apr 7, 2025
e2d6722
Validation 4 Custom inline test pt4
validbeck Apr 7, 2025
3172d4c
Validation 4 Custom inline test pt5
validbeck Apr 7, 2025
9bf213b
Validation 4 Custom inline test pt6
validbeck Apr 7, 2025
af2ef0a
Validation 4 Custom test provider pt1
validbeck Apr 7, 2025
15bf872
Validation 4 Custom test provider pt2
validbeck Apr 7, 2025
8d85fc3
Validation 4 Next steps typo
validbeck Apr 7, 2025
ac81d5c
Validation 4 Verify test runs setup
validbeck Apr 7, 2025
bb90e25
Validation 4 Verify test runs edit
validbeck Apr 7, 2025
8508dbf
Forgot the raw dataset
validbeck Apr 7, 2025
4ce5811
Fixing broken API links
validbeck Apr 7, 2025
1d0396b
Adding ToCs
validbeck Apr 7, 2025
8318dba
Next steps - Work with your validation report
validbeck Apr 7, 2025
7bc1997
2.8.18
validbeck Apr 9, 2025
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ lending_club_loan_data_*.csv
*.pkl
# Sample application scorecard model for validation notebook β€” do not remove!
!notebooks/code_samples/model_validation/xgb_model_champion.pkl
# Sample logistic regression model for validation series β€” do not remove!
!notebooks/tutorials/model_validation/lr_model_champion.pkl

notebooks/llm/datasets/*.jsonl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@
"\n",
"## Run feature importance tests\n",
"\n",
"We want to verify the relative influence of different input features on our models' predictions, as well as inspect the differences between our champion and challenger model to see if a certain model offers more understandable or logical importance scores for features.\n",
"We also want to verify the relative influence of different input features on our models' predictions, as well as inspect the differences between our champion and challenger model to see if a certain model offers more understandable or logical importance scores for features.\n",
"\n",
"Use `list_tests()` to identify all the feature importance tests for classification:"
]
Expand Down Expand Up @@ -1580,7 +1580,7 @@
"\n",
"Our final task is to verify that all the tests provided by the model development team were run and reported accurately. Note the appended `result_ids` to delineate which dataset we ran the test with for the relevant tests.\n",
"\n",
"Here, we'll specify all the tests we'd like to independently rerun in a dictionary called `test_config`:"
"Here, we'll specify all the tests we'd like to independently rerun in a dictionary called `test_config`. **Note here that `inputs` and `input_grid` expect the `input_id` of the dataset or model as the value rather than the variable name we specified**:"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"id": "97710f2a",
"id": "b6fa2ac0",
"metadata": {},
"source": [
"# ValidMind for model development β€” 101 Set up the ValidMind Library\n",
"# ValidMind for model development 1 β€” Set up the ValidMind Library\n",
"\n",
"Learn how to use ValidMind for your end-to-end model documentation process based on common model development scenarios with our series of four introductory notebooks. This first notebook walks you through the initial setup of the ValidMind Library.\n",
"\n",
Expand All @@ -14,7 +14,7 @@
},
{
"cell_type": "markdown",
"id": "d3bb0ff8",
"id": "fe2e0eca",
"metadata": {},
"source": [
"::: {.content-hidden when-format=\"html\"}\n",
Expand All @@ -30,6 +30,7 @@
" - [Get your code snippet](#toc3_2_1_) \n",
"- [Getting to know ValidMind](#toc4_) \n",
" - [Preview the documentation template](#toc4_1_) \n",
" - [View model documentation in the ValidMind Platform](#toc4_1_1_) \n",
" - [Explore available tests](#toc4_2_) \n",
"- [Upgrade ValidMind](#toc5_) \n",
"- [In summary](#toc6_) \n",
Expand All @@ -49,7 +50,7 @@
},
{
"cell_type": "markdown",
"id": "d78e3887",
"id": "814da22c",
"metadata": {},
"source": [
"<a id='toc1_'></a>\n",
Expand All @@ -66,7 +67,7 @@
},
{
"cell_type": "markdown",
"id": "f40a5e0a",
"id": "4b966a95",
"metadata": {},
"source": [
"<a id='toc2_'></a>\n",
Expand All @@ -80,7 +81,7 @@
},
{
"cell_type": "markdown",
"id": "12af6ba2",
"id": "87936431",
"metadata": {},
"source": [
"<a id='toc2_1_'></a>\n",
Expand All @@ -94,7 +95,7 @@
},
{
"cell_type": "markdown",
"id": "5f9cc87c",
"id": "cb9f8dc1",
"metadata": {},
"source": [
"<a id='toc2_2_'></a>\n",
Expand All @@ -110,7 +111,7 @@
},
{
"cell_type": "markdown",
"id": "31c5cde0",
"id": "a0d16aca",
"metadata": {},
"source": [
"<a id='toc2_3_'></a>\n",
Expand Down Expand Up @@ -145,7 +146,7 @@
},
{
"cell_type": "markdown",
"id": "1c06378f",
"id": "215d62a7",
"metadata": {},
"source": [
"<a id='toc3_'></a>\n",
Expand Down Expand Up @@ -173,7 +174,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8883bbc3",
"id": "827eb6bd",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -182,7 +183,7 @@
},
{
"cell_type": "markdown",
"id": "780b6b39",
"id": "5e37f9fe",
"metadata": {},
"source": [
"<a id='toc3_2_'></a>\n",
Expand Down Expand Up @@ -211,7 +212,7 @@
},
{
"cell_type": "markdown",
"id": "d00f6f07",
"id": "48eb92b3",
"metadata": {},
"source": [
" - Documentation template: `Binary classification`\n",
Expand All @@ -233,7 +234,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5f22e91d",
"id": "a58d951f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -256,7 +257,7 @@
},
{
"cell_type": "markdown",
"id": "c3186121",
"id": "99cf2df8",
"metadata": {},
"source": [
"<a id='toc4_'></a>\n",
Expand All @@ -280,13 +281,31 @@
{
"cell_type": "code",
"execution_count": null,
"id": "32ab4cac",
"id": "819a40bc",
"metadata": {},
"outputs": [],
"source": [
"vm.preview_template()"
]
},
{
"cell_type": "markdown",
"id": "cf63d701",
"metadata": {},
"source": [
"<a id='toc4_1_1_'></a>\n",
"\n",
"#### View model documentation in the ValidMind Platform\n",
"\n",
"Next, let's head to the ValidMind Platform to see the template in action:\n",
"\n",
"1. In a browser, [log in to ValidMind](https://docs.validmind.ai/guide/configuration/log-in-to-validmind.html).\n",
"\n",
"2. In the left sidebar, navigate to **Inventory** and select the model you registered for this \"ValidMind for model development\" series of notebooks.\n",
"\n",
"3. Click on the **Documentation** for your model and note how the structure of the documentation matches our preview above."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -303,7 +322,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "acf76128",
"id": "7ccc7776",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -326,7 +345,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "95bede03",
"id": "f5d3216d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -347,15 +366,15 @@
},
{
"cell_type": "markdown",
"id": "6a7bf101",
"id": "9b8aa1cc",
"metadata": {},
"source": [
"You may need to restart your kernel after running the upgrade package for changes to be applied."
]
},
{
"cell_type": "markdown",
"id": "207875f2",
"id": "65ece5fb",
"metadata": {},
"source": [
"<a id='toc6_'></a>\n",
Expand All @@ -364,15 +383,15 @@
"\n",
"In this first notebook, you learned how to:\n",
"\n",
"- [ ] Register a model within the ValidMind Platform\n",
"- [ ] Install and initialize the ValidMind Library\n",
"- [ ] Preview the documentation template for your model\n",
"- [ ] Explore the available tests offered by the ValidMind Library"
"- [x] Register a model within the ValidMind Platform\n",
"- [x] Install and initialize the ValidMind Library\n",
"- [x] Preview the documentation template for your model\n",
"- [x] Explore the available tests offered by the ValidMind Library"
]
},
{
"cell_type": "markdown",
"id": "29781eb4",
"id": "a262f940",
"metadata": {},
"source": [
"<a id='toc7_'></a>\n",
Expand All @@ -388,7 +407,7 @@
"\n",
"### Start the model development process\n",
"\n",
"Now that the ValidMind Library is connected to your model in the ValidMind Library with the correct template applied, we can go ahead and start the model development process: **[102 Start the model development process](102-start_development_process.ipynb)**"
"Now that the ValidMind Library is connected to your model in the ValidMind Library with the correct template applied, we can go ahead and start the model development process: **[2 β€” Start the model development process](2-start_development_process.ipynb)**"
]
}
],
Expand Down
Loading