Try it in your own developer environment
Learn how to document a model with ValidMind locally in your own developer environment. You can either clone our open-source repository or download the code samples to run the notebook.
Before you begin
To try out ValidMind, you need to be a registered user on the ValidMind Platform UI.
You should be familiar with using standard software development tools, including the command line, and have a developer environment set up locally, such as Visual Studio Code.
- To run our sample Jupyter Notebooks locally, your developer environment must support Python ≧3.8 and <3.11.
- To clone our open-source repository, you must have access to GitHub. Alternatively, you must be able to download a
.zipfile containing our code samples that include the introductory Jupyter Notebook.
Steps
Start by retrieving our notebook samples from GitHub, or download them from our website.
Option 1: Clone the open-source repository
Open a terminal or command prompt.
Navigate to the directory where you want to clone the repository.
Run the following command:
git clone https://github.com/validmind/developer-framework.gitAfter the cloning process is complete, open
notebooks/code_samples/quickstart_customer_churn_full_suite.ipynbin your developer environment and run the notebook.The notebook will guide you through installing the ValidMind Developer Framework, initializing the Python environment, and finally initializing the ValidMind Client Library by connecting to the ValidMind Platform UI.
Option 2: Download the code samples
Download our selection of code samples:
notebooks.zipNavigate to the location where you saved
notebooks.zipand extract the contents.Depending on your operating system, you can right-click on
notebooks.zipand select Extract All … or Extract Here, for example.Navigate to the folder where you extracted the files.
Open
notebooks/code_samples/quickstart_customer_churn_full_suite.ipynbin your developer environment and run the notebook.The notebook will guide you through installing the ValidMind Developer Framework, initializing the Python environment, and finally initializing the ValidMind Client Library by connecting to the ValidMind Platform UI.
Run the notebook
Follow the instructions to run the first two code cells in the notebook, which will set the stage by installing and initializing ValidMind:1
- Hover over each cell and click the icon; OR
- Press
Shift + Enteron Windows orCmd + Enterif you are on a Mac
Under the cell at bottom of the Initialize the client library section, confirm that you see a success message that looks something like this:
2024-10-08 22:06:42,610 - INFO(validmind.api_client): 🎉 Connected to ValidMind! 📊 Model: [Demo] Customer Churn Model (ID: clwqy70qd01my22ikc49paar9) 📁 Document Type: model_documentationThis message verifies that the developer framework works as expected as is connected to the correct model within the platform UI.
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 to explore the platform UI.
What’s next
Continue with Explore sample model documentation to learn more about using the ValidMind AI risk platform hands-on.