You need credentials & you will get them from the ./printcredentials.sh step from the Infrastructure Provisioning Lab.
You need to download two notebooks into your system.
Step 1
Download the first notebook Drift-Detection-Model.ipynb into your local file system.
Step 2
Upload Drift detection model notebook into Watson Open Scale canvas. You can upload the notebook into Watson studio project as shown in step #3.
Note :- You need to update the credentials in Cell # 18 & the SageMaker endpoint name (you would have got it in the previous step) in cell # 19 and then run all the cells in the notebook by clicking on Kernel - Restart & Run All.
Step 3
Run all the cells in the notebook by clicking on Kernel - choose Restart & Run All as per the sample image below.
Step 4
Click on the Download Drift detection model option at the end of the notebook and download the tar.gz file into your local file system. A sample tar.gz file is available here. The downloaded file needs to be uploaded into Watson Open Scale canvas as shown in the next step. The model has been built and trained on the Risk Index data to learn and highlight when there’s a change in model performance or drift in data.
Step 5
Download the second notebook SageMaker-Monitor-OpenScale.ipynb into your local file system.
Step 6
Upload SageMaker Monitor OpenScale notebook into Watson Studio canvas. You can upload tnotebook into the Watson studio project as shown in step #3.
Step 7
Note:- You need to update the credentials in Cell #s 3, 5 & 10 and run all the cells in the notebook by clicking on Kernel - Restart & Run All.
This notebook built in Watson Studio uses Watson Open Scale for setup & monitor SageMaker endpoints. The metrics which will be evaluated are Fairness, Quality, Explainability & Drift detection of SageMaker endpoints as per the thresholds set by the user. This will help to identify whether the SageMaker model requires retraining to eliminate bias in the scoring of the data for generating predictions.