Golden Bank is a leading mortgage provider through their network of neighborhood branches. This tutorial cover these goals:
- The bank uses AI to process loan applications and needs to avoid unanticipated risk and ensure that its applicants are being treated fairly.
- Based on a new regulation, the bank cannot lend to underqualified loan applicants. The bank has existing data for loan applications in a Db2 Warehouse. The bank has used the data to train and deployed the AI model.
- The bank wants to monitor the model for quality, fairness, and explainability to avoid unanticipated risk and treat all applicants fairly.
-
Create the required services for the exercise
- Log into your IBM Cloud account.
- From the navigation menu at the top left corner, scroll down and choose Cloud Pak for Data > Services.
- Click Launch Cloud Pak for Data.
- From the Cloud Pak for Data navigation menu, choose Services > Service instances.
- Use the Product drop-down list to determine whether there is an existing Watson Studio service instance.
- If you need to create a Watson Studio service instance, click Add service.
- Select Watson OpenScale
- Select Dallas as the region.
- Select the Lite plan.
- Click Create.
-
Verify you have the Watson-OpenScale-xx service instance like the image.
-
If you have not created the project create the sample project for the exercise.
- Login to IBM Cloud and access the MLOps and Trustworthy AI guided tutorial sample project in the gallery.
- Click Create project.
- Take the default name and select a Cloud Object Storage instance from the list.
- Click Create and then View new project to verify that the project and assets were created successfully.
-
Verify your project looks like the following image.
-
Make sure you have trained, deployed, and Promoted a model into a Deployment space. This exercise assumed you have completed the build and deploy with autoai or the build and deploy with watson studio tutorial.
-
Locate the
monitor-wml-model-with-watson-openscale
Notebook underSource Code
in the theMLOps and Trustworthy AI
project that you have created in the previous exercise under theAssets
tab. -
Once the Notebook is opened, it is read only mode. Click on Edit to instantiate the Notebook for editing.
Note: If the
ibmcloud_api_key
is empty click here to create one and paste it to the Notebook.Note: You may need to change the following variables in the Notebook if you have not named the deployment as instructed in the build and deploy with watson studio tutorial.
-
Create the monitor using the Notebook: a. Select Cell > Run all and wait for all the cells to finish running without error.
b. Shutdown the Notebook instance. File > Stop kernel.
-
Open the OpenScale Dashboard and verify you have something like:
-
Go the
MLOps and Trustworthy AI
project and download theGoldenBank_HoldoutData.csv
under the Assets tab and Data assets. -
On the Dashboard, click on the cell to display the monitor. Click on Action > Evaluate Now > Choose the option
from CSV
in the drop down menu to browse the holdout data you have downloaded in the previous step. ClickUpload and evaluate
. -
Wait for the evaluation to complete and verify you have something like: