Skip to content

Commit d43be1a

Browse files
authored
quickstart: Model Development (#748)
* Setup for new developer quickstart * Save point * Save point * Cleanup of old quickstart files * Proofreading * Single-sourcing common steps * Proofreading * Broken link cleanup * Editing * Tweak * Edit * Final edit for now * I lied one more * Notes & adjust * Oops forgot to comment out a line * Tweak * Tweakkk * Forgot aliases, quick adjust
1 parent 1a27379 commit d43be1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+253
-622
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ When constructing links, refer to the `.qmd` file as Quarto will properly render
106106

107107
| Correct | Incorrect |
108108
|---|---|
109-
| `[Get started with JupyterHub](get-started/developer/try-with-jupyterhub.qmd)` | `[Get started with JupyterHub](get-started/developer/try-with-jupyterhub.html)` |
109+
| `[Quickstart — Model Development](get-started/developer/quickstart-developer.qmd)` | `[Quickstart — Model Development](get-started/developer/quickstart-developer.html)` |
110110

111111
When constructing filepaths, including while using [Quarto's Includes](https://quarto.org/docs/authoring/includes.html) (single-sourcing feature), you'll also want start with the root directory whenever possible as this minimizes usage of unclear relative paths:
112112

site/about/overview-model-documentation.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ listing:
99
grid-columns: 2
1010
# image-height: 100%
1111
contents:
12-
- path: ../get-started/quickstart.qmd
13-
title: "QuickStart"
14-
description: "Our QuickStart is the quickest and easiest way to try out our product features."
12+
- path: ../get-started/get-started.qmd
13+
title: "Get started"
14+
description: "Our quickstarts are the quickest and easiest way to try out our product features."
1515
fields: [title, description, reading-time]
1616
---
1717

site/about/overview-model-risk-management.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ listing:
99
grid-columns: 2
1010
# image-height: 100%
1111
contents:
12-
- path: ../get-started/quickstart.qmd
13-
title: "QuickStart"
14-
description: "Our QuickStart is the quickest and easiest way to try out our product features."
12+
- path: ../get-started/get-started.qmd
13+
title: "Get started"
14+
description: "Our quickstarts are the quickest and easiest way to try out our product features."
1515
fields: [title, description, reading-time]
1616
---
1717

site/developer/validmind-library.qmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: "{{< var validmind.developer >}}"
2+
# USING THE VARIABLE MESSES UP THE SPACING ON THE PREVIEW TILE
3+
title: "ValidMind Library"
34
date: last-modified
45
aliases:
56
- /guide/get-started-developer-framework.html
@@ -84,7 +85,7 @@ listing:
8485
- ../guide/model-documentation/work-with-content-blocks.qmd
8586
---
8687

87-
The {{< var validmind.developer >}} helps you streamline model documentation by automating the generation of drafts. All you need to do is upload your documentation artifacts and test results to the {{< var validmind.platform >}}.
88+
The {{< var validmind.developer >}} streamlines model development and validation by automating testing. Run tests, log those test results to the {{< var validmind.platform >}}, and have fully supported drafts of documentation or reporting ready for you to fine-tune.
8889

8990
## What is the {{< var validmind.developer >}}?
9091

site/get-started/_sidebar.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ website:
44
title: "Get Started"
55
contents:
66
- text: "Quickstart For"
7-
- text: "Model development"
7+
- text: "Model Development"
88
file: get-started/developer/quickstart-developer.qmd
9-
- text: "Model validation"
9+
- text: "Model Validation"
1010
file: get-started/validator/quickstart-validator.qmd
11-
- text: "Setup & administration"
11+
- text: "Setup & Administration"
1212
file: get-started/administrator/quickstart-administrator.qmd

site/get-started/administrator/quickstart-administrator.qmd

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,27 @@ date: last-modified
44
page-layout: full
55
---
66

7-
Set up your organization, onboard new users, and set up user roles, permissions, and groups within the {{< var validmind.platform >}} as a superuser.
7+
Set up the foundational units for your organization within the {{< var validmind.platform >}}, prepare your organization for users, then grant access to your first user.
8+
9+
<!-- BECK'S OUTLINE / NOTES -->
10+
11+
<!-- {{< include /get-started/common-assets/_before-you-begin.qmd >}}
12+
13+
## Setting up your organization
14+
15+
### Set up business units
16+
17+
### Set up use cases
18+
19+
## Preparing your organization for users
20+
21+
### Set up groups
22+
23+
### Set up roles
24+
25+
## Invite your first user
26+
27+
## What's next
28+
29+
- Administrator Fundamentals
30+
- ValidMind Platform Guides -->
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Access the quickstart notebook
2+
3+
You can either load the hosted version of our notebook, or download the notebook to run in your own local environment:
4+
5+
#### Load the hosted notebook (recommended)
6+
7+
1. Sign in to [JupyterHub]({{< var url.jupyterhub >}}) with your {{< var vm.product >}} login.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
::: {.attn}
2+
3+
## {{< fa star-of-life >}} Before you begin
4+
5+
- [x] To try out {{< var vm.product >}}, you need to be a registered user on the {{< var validmind.platform >}}.[^1]
6+
- [x] You'll also want to make sure that you're logged into the {{< var validmind.platform >}}.[^2]
7+
8+
:::
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
##### Option 2: Download the code samples
2+
3+
1. Download our selection of code samples: [`notebooks.zip`](/notebooks.zip)
4+
5+
1. Navigate to the location where you saved `notebooks.zip` and extract the contents.^[Depending on your operating system, you can right-click on `notebooks.zip` and select **Extract All ...** or **Extract Here**, for example.]
6+
7+
1. Navigate to the folder where you extracted the files.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#### Download the notebooks
2+
3+
##### Option 1: Clone the GitHub repository
4+
5+
1. Open a terminal or command prompt.
6+
7+
1. Navigate to the directory where you want to clone the repository.
8+
9+
1. Run the following command:
10+
```bash
11+
git clone https://github.com/validmind/validmind-library.git
12+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#### Get your code snippet
2+
3+
Before we move on, let's also retrieve the unique *code snippet* for your model that will enable you to connect your testing environment with the correct model in the {{< var validmind.platform >}}:
4+
5+
1. In the left sidebar that appears for your model, click **{{< fa rocket >}} Getting Started**.
6+
7+
1. Locate the code snippet and click **{{< fa regular copy >}} Copy snippet to clipboard**.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
1. In the left sidebar, click **{{< fa cubes >}} Inventory**.
2+
3+
1. Click **{{< fa plus >}} Register New Model**.
4+
5+
1. To register a model for use with this quickstart, select:
6+
7+
- [what type of model is it?]{.smallcaps} — `New Model`
8+
- [template]{.smallcaps} — `Binary classification`
9+
- [use case]{.smallcaps} — `Attrition/Churn Management`
10+
11+
1. Click **Register Model** to add the model to your inventory.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Run the quickstart notebook
2+
3+
::: {.callout title="Do you have your code snippet?"}
4+
5+
To initialize the {{< var validmind.developer >}} which connects your environment to the correct model in the {{< var validmind.platform >}}, you'll need your unique code snippet!^[[Get your code snippet](#get-your-code-snippet)]
6+
:::
7+
8+
1. Follow the instructions to run the first two code cells in the notebook,[^longnote] which will set the stage by installing and initializing {{< var vm.product >}}.^[[Install and initialize the {{< var validmind.developer >}}](/developer/model-documentation/install-and-initialize-validmind-library.qmd)]
9+
10+
1. Under the cell at bottom of the **Get your code snippet** section, confirm that you see a success message verifying that you've connected to the right model.
11+
12+
This message verifies that the {{< var vm.developer >}} works as expected as is connected to the correct model within the {{< var vm.platform >}}.
13+
14+
[^longnote]:
15+
16+
- Hover over each cell and click the {{< fa circle-play >}} **icon**; OR
17+
- Press `Shift + Enter` on Windows or `Cmd + Enter` if you are on a Mac
Loading
Loading
Loading
Binary file not shown.

site/get-started/developer/quickstart-developer.qmd

Lines changed: 100 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,132 @@
22
title: "Quickstart — Model Development"
33
date: last-modified
44
page-layout: full
5+
listing:
6+
- id: whats-next
7+
type: grid
8+
grid-columns: 2
9+
max-description-length: 250
10+
sort: false
11+
fields: [title, description]
12+
contents:
13+
- ../../training/developer-fundamentals/developer-fundamentals-register.qmd
14+
- ../../developer/validmind-library.qmd
15+
aliases:
16+
- try-with-jupyterhub.html
17+
- try-with-colab.html
18+
- try-in-your-own-environment.html
19+
- ../platform/explore-sample-model-documentation.html
20+
- ../platform/register-your-first-model.html
21+
- ../platform/generate-documentation-for-your-model.html
522
---
623

7-
Register your first model, use the {{< var validmind.developer >}} to document a model and run tests, and edit your generated model documentation using the {{< var validmind.platform >}}.
24+
Register your first model, use the {{< var validmind.developer >}} to run tests and document a model, then review your generated model documentation within the {{< var validmind.platform >}}.
825

9-
<!-- THIS IS THE OLD INFO AS A PLACEHOLDER, NEW INFO TO COME -->
26+
{{< include /get-started/common-assets/_before-you-begin.qmd >}}
1027

11-
::: {.attn}
28+
## Register your first model
1229

13-
## {{< fa star-of-life >}} Before you begin
30+
The first step to using {{< var vm.product >}} to develop models is to register them in your model inventory:
1431

15-
To try out {{< var vm.product >}}, you need to be a registered user on the {{< var validmind.platform >}}.
32+
{{< include /get-started/common-assets/_register-your-first-model.qmd >}}
1633

17-
::: {.callout}
18-
## Need an account for {{< var vm.product >}}?
19-
Signing up is FREE — {{< var link.register >}}
34+
::: {.column-margin}
35+
![Registration modal with the options filled out for the model development quickstart](developer-new-model.png){width=90% fig-alt="A screenshot showing the registration modal with the options filled out for the model development quickstart" .screenshot}
2036
:::
2137

38+
{{< include /get-started/common-assets/_get-your-code-snippet.qmd >}}
39+
40+
::: {.column-margin}
41+
![{{< fa rocket >}} Getting Started page with a sample code snippet](developer-code-snippet.png){width=90% fig-alt="A screenshot showing the Getting Started page with a sample code snippet" .screenshot}
2242
:::
2343

24-
## Steps
44+
## Using the {{< var validmind.developer >}}
45+
46+
Next, let's set up the {{< var validmind.developer >}} in your developer environment of choice so we can use it to run and log tests, which will help automate the documentation of your models.
47+
48+
Our companion notebook, **Quickstart for model documentation,**[^3] will walk you through the steps of installing the {{< var vm.developer >}} in your environment, initializing the {{< var vm.developer >}} for use, and running a full suite of documentation tests that will log the results to the {{< var validmind.platform >}}.
49+
50+
{{< include /get-started/common-assets/_access-quickstart-notebook.qmd >}}
51+
52+
<!-- NOT LIVE ON JUPYTERHUB YET, HASN'T BEEN UPDATED -->
53+
1. Open [Quickstart for model documentation]({{< var url.jupyterhub >}}/hub/user-redirect/lab/tree/quickstart/quickstart_model_documentation.ipynb) and [run the quickstart notebook](#run-the-quickstart-notebook).
54+
55+
{{< include /get-started/common-assets/_download-notebooks.qmd >}}
56+
57+
1. After the cloning process is complete, open `notebooks/quickstart/quickstart_model_documentation.ipynb` in your developer environment and [run the quickstart notebook](#run-the-quickstart-notebook).
58+
59+
{{< include /get-started/common-assets/_download-code-samples.qmd >}}
60+
61+
1. Open `notebooks/quickstart/quickstart_model_documentation.ipynb` in your developer environment and [run the quickstart notebook](#run-the-quickstart-notebook).
62+
63+
{{< include /get-started/common-assets/_run-quickstart-notebook.qmd >}}
64+
65+
::: {.column-margin}
66+
**Example success message:**
67+
68+
```bash
69+
2024-10-08 22:06:42,610 - INFO(validmind.api_client): 🎉 Connected to {{< var vm.product >}}!
70+
📊 Model: [ValidMind] Model development quickstart (ID: cmalgf3qi02ce199qm3rdkl46)
71+
📁 Document Type: model_documentation
72+
```
73+
:::
74+
75+
3. Continue running the rest of the notebook to automatically populate test results for your sample model to your documentation for that model in the {{< var vm.platform >}}.
76+
77+
## Work with model documentation
2578

26-
1. In a web browser, open [Quickstart for model documentation]({{< var url.jupyterhub >}}/hub/user-redirect/lab/tree/quickstart/quickstart_model_documentation.ipynb).
79+
After you successfully run the notebook, return to the {{< var validmind.platform >}}:
2780

28-
This link takes you to {{< var vm.product >}}'s JupyterHub instance where you can log in with the Auth0 credentials for your {{< var vm.product >}} account to access the **QuickStart for model documentation** notebook:
81+
1. In the left sidebar, click **{{< fa cubes >}} Inventory**.
2982

30-
![QuickStart notebook opened in JupyterHub](jupyterhub-dashboard.png){width=90% fig-alt="A screenshot showing the QuickStart notebook opened in JupyterHub" .screenshot}
83+
2. Locate or search for the model you registered for this quickstart and click on it to select it.[^4]
3184

32-
The notebook will guide you through installing the {{< var validmind.developer >}}, initializing the Python environment, and finally connecting the {{< var vm.developer >}} to the {{< var validmind.platform >}}.
85+
3. In the left sidebar that appears for the model, click **{{< fa book-open >}} Documentation**.
3386

34-
2. Follow the instructions to run the first two code cells in the notebook, which will set the stage by installing and initializing {{< var vm.product >}}:[^1]
87+
- Your model's documentation is broken down into sections, defined by your documentation templates.[^5]
88+
- Each section can be assigned a completion status,[^6] allowing you to track the progress of your documentation.
3589

36-
- Hover over each cell and click the {{< fa circle-play >}} **icon**; OR
37-
- Press `Shift + Enter` on Windows or `Cmd + Enter` if you are on a Mac
38-
39-
Under the cell at bottom of the **Initialize the ValidMind Library** section, confirm that you see a success message that looks something like this:
40-
41-
```bash
42-
2024-10-08 22:06:42,610 - INFO(validmind.api_client): 🎉 Connected to {{< var vm.product >}}!
43-
📊 Model: [Demo] Customer Churn Model (ID: clwqy70qd01my22ikc49paar9)
44-
📁 Document Type: model_documentation
45-
```
46-
47-
This message verifies that the {{< var vm.developer >}} works as expected as is connected to the correct model within the {{< var vm.platform >}}.
90+
4. Click on any section of the documentation to review the test results and drafts of test result summaries generated by the {{< var validmind.developer >}}.
4891

49-
You can now continue running the rest of the cells if you want to see how the demo notebook works or, to save some time, you can move on to the [Explore sample model documentation](/get-started/platform/explore-sample-model-documentation.qmd) to explore the {{< var vm.platform >}}.
92+
In any subsection, expand the **{{< var vm.product >}} Insights™** panel to view the Documentation Guidelines[^7] that tell you more about what these sections mean and help you with the task of documenting the model as a developer.
5093

51-
#### Watch the tutorial
94+
:::: {.flex .flex-wrap .justify-around}
5295

53-
Need more help? Experience this guide in video format:
96+
::: {.w-40-ns .tc}
5497

55-
{{< video https://www.youtube.com/embed/rIR8Mql7eGs?si=vnZA_zP4tAjFjI4r title='ValidMind QuickStart' >}}
98+
![Example model details page with documentation outline](developer-model-details.png){width=90% fig-alt="A screenshot showing an example model details page with documentation outline" .screenshot group="documentation"}
99+
100+
:::
101+
102+
::: {.w-40-ns .tc}
103+
104+
![Populated model documentation section with the **{{< var vm.product >}} Insights™** panel open](validmind-insights.png){width=90% fig-alt="A screenshot showing populated model documentation section with the ValidMind Insights™ panel open" .screenshot group="documentation"}
105+
106+
:::
107+
108+
::::
56109

57-
<!--- TO DO Screenshot --->
58110

59111
## What's next
60112

61-
Continue with [Explore sample model documentation](/get-started/platform/explore-sample-model-documentation.qmd) to learn more about using the {{< var validmind.platform >}} hands-on.
113+
Now that you've grasped the basics of using {{< var vm.product >}} for model development, continue on your journey with our end-to-end training course for developers and browse through our resource hub for the {{< var validmind.developer >}}:
114+
115+
:::{#whats-next}
116+
:::
62117

63118

64119
<!-- FOOTNOTES -->
65120

66-
[^1]: [Install and initialize the {{< var validmind.developer >}}](/developer/model-documentation/install-and-initialize-validmind-library.qmd)
121+
[^1]: [Register with {{< var vm.product >}}](/guide/configuration/register-with-validmind.qmd)
122+
123+
[^2]: [Log in to {{< var vm.product >}}](/guide/configuration/log-in-to-validmind.qmd)
124+
125+
[^3]: [Quickstart for model documentation](/notebooks/quickstart/quickstart_model_documentation.ipynb)
126+
127+
[^4]: [Working with the model inventory](/guide/model-inventory/working-with-model-inventory.qmd#search-filter-and-sort-models)
128+
129+
[^5]: [Working with documentation templates](/guide/templates/working-with-documentation-templates.qmd)
130+
131+
[^6]: [Assign documentation section statuses](/guide/model-documentation/assign-documentation-section-statuses.qmd)
132+
133+
[^7]: [View documentation guidelines](/guide/model-documentation/view-documentation-guidelines.qmd)

0 commit comments

Comments
 (0)