Materials for a technical, nuts-and-bolts course about increasing transparency, fairness, robustness, and security in machine learning.
Corrections or suggestions? Please file a GitHub issue.
Source: Simple Explainable Boosting Machine Example
Source: Global and Local Explanations of a Constrained Model
Source: Lecture 3 Notes
Source: Responsible Machine Learning
Source: Real-World Strategies for Model Debugging
A Responsible Machine Learning Workflow Diagram. Source: Information, 11(3) (March 2020).
A diagram for retrieval augmented generation. Source: Lecture 7 notes.
Create a folder in your GWU Google Drive My Drive
called DNSC_6330_Software
Lecture_01
inside the DNSC_6330_Software
01_Explainable_AI_Models.ipynb
notebook into the Lecture_01
folder by using the File
->Save a Copy In Drive
menu options, or download the class notebook and upload to your folder01_Explainable_AI_Models.ipynb
update the path to the Lecture_01
folder:
%cd drive/My\ Drive/DNSC_6330_Software/Lecture_01/
%cd
and %ls
commands to find your folder if neededdrive.mount('/content/drive/', force_remount=True)
command can only be used once in a Colab session, so use %cd
and %ls
commands in a different cell or restart your colab session if you see strange errorsData
at top -> Download, then unzip and upload into DNSC_6330_Software
folder)hrml_book
at top -> Download, then unzip and upload into DNSC_6330_Software
folder)DNSC_6330_Software
folderassignments
in the DNSC_6330_Software
folderassign_1_template.ipynb
into the assignments
folderdata
in the DNSC_6330_Software
folderdata
folderassignment_1.ipynb
add a cell before cell 1 that installs h2o
and interpret
: !pip install interpret h2o
assignment_1.ipynb
add a cell before cell 3 that connects the notebook to the data:from google.colab import drive
drive.mount('/content/drive/', force_remount=True)
# may need to be updated to location on your drive
%cd drive/My\ Drive/DNSC_6330_Software/assignments/
%ls
__pycache__
folders you seeDNSC_6330_Software
folder should look like:DNSC_6330_Software
├── assignments
│ ├── assign_1_template.ipynb
├── data
│ ├── hmda_test_preprocessed.csv
│ └── hmda_train_preprocessed.csv
├── Data
│ ├── backdoor_testing
│ │ ├── constrained_backdoor_output.csv
│ │ ├── constrained_output.csv
│ │ ├── overfit_backdoor_output.csv
│ │ ├── overfit_output.csv
│ │ └── test_data.csv
│ ├── credit_line_increase.csv
│ ├── data_dictionary.csv
│ └── synthetic_data.csv
├── hrml_book
│ ├── explain.py
│ └── partial_dep_ice.ipynb
└── Lecture_01
└── 01_Explainable_AI_Models.ipynb
from google.colab import drive
drive.mount('/content/drive/', force_remount=True)
# may need to be updated to location on your drive
%cd drive/My\ Drive/DNSC_6330_Software/
!apt-get -y install tree
! tree
assignments
folderLecture_XX/XX_notebook_name.iypnb
folders
Lecture_02/02_Explainable_AI_Post_Hoc.ipynb