Using the RAI toolbox to debug a diabetes hospital readmission classification model. To use the open-source Responsible AI Toolbox, you'll need a notebook to successfully complete this workshop. Your use a notebook of your choice in this lab (e.g. Visual Studio code or Jupyter notebook).
We'll also be using conda to manage our Python environment in this workshop. If you don't have Anaconda or Miniconda installed, you can download it from docs.conda.io. You'll need the directory path to where you installed conda later. For example, for Windows users, if you are using Anaconda, the path is usually located at C:\Users\[username]\Anaconda3\Scripts.
- From the command prompt, confirm your installation by typing the following command below:
conda --version
- If conda is not recognized, locate that the path to where you installed Conda is set in your system environment variables path. Run the following command to add the path to your system path:
setx PATH "%PATH%;C:\Users\\[username]\Anaconda3\Scripts"
- From the command prompt, clone the Diabetes Hospital Readmission project github repository by copying and pasting the command below:
git clone https://github.com/ruyakubu/responsibleai-toolbox-diabetes-hospital-readmission.git
- Change to the project directory.
cd responsibleai-toolbox-diabetes-hospital-readmission
- From the command prompt terminal, type the following command to create a conda environment:
conda env create -n py39_env --file libs/env.yaml
- Confirm that the conda environment was created from the command prompt, type the following command:
conda info --envs
- Set the conda environment to run the notebook by typing the following command:
conda activate py39_env
-
Open the diabetes-hospital-readmission-classification.ipnb and run the notebook. This will take 5 minutes to complete.
-
After the notebook has completed running, a link to the generated Responsible AI dashboard will be displayed. Click on the "http://localhost:5000" link to launch a browser window with the dashboard.
-
Terrific...you're ready to start using the dashboard!