Materials for a technical, nuts-and-bolts course about increasing transparency, fairness, robustness, and security in machine learning.
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

Source: Lecture 6 notebook

A Responsible Machine Learning Workflow Diagram. Source: Information, 11(3) (March 2020).
Most lecture software examples use H2O-3.
Run notebooks from the repository root so they can find course data and the util package. Install uv, Visual Studio Code, and the Python and Jupyter extensions. The course environment uses Python 3.11 and dependencies recorded in pyproject.toml and uv.lock.
The default course environment uses H2O-3 with NumPy 1. Install a 64-bit Java Development Kit (JDK) using a package manager or OpenJDK distribution for your operating system, then set JAVA_HOME to its installation directory. H2O-3 3.46 lists Java 8–17 as supported; OpenJDK build 27 has also worked with these course notebooks, but is outside H2O’s published support range (H2O-3 requirements).
On macOS and Linux:
uv python install 3.11
uv sync
export JAVA_HOME=/path/to/java/home
code .
On Windows PowerShell:
$env:JAVA_HOME = "C:\Path\To\Java\Home"
uv python install 3.11
uv sync
code .
For these notebooks, select the Python 3.11 environment in .venv as the notebook kernel (.venv/bin/python on macOS/Linux; .venv\Scripts\python.exe on Windows).
For notebooks that do not use H2O-3, create a separate NumPy 2 environment. Do not install the course and legacy-h2o groups into the same environment.
On macOS and Linux:
UV_PROJECT_ENVIRONMENT=.venv-numpy2 uv sync --group course --group notebook-execution --no-default-groups
code .
On Windows PowerShell:
$env:UV_PROJECT_ENVIRONMENT = ".venv-numpy2"
uv sync --group course --group notebook-execution --no-default-groups
code .
Select the Python 3.11 environment in .venv-numpy2 as the notebook kernel (.venv-numpy2/bin/python on macOS/Linux; .venv-numpy2\Scripts\python.exe on Windows). On macOS, install the XGBoost OpenMP runtime once with brew install libomp. Linux distributions generally provide the OpenMP runtime through their system packages. Windows users need the Microsoft Visual C++ Redistributable for XGBoost examples.
Lecture 6 uses NVIDIA Structured Data Models and NAMpy with PyTorch. Set up a separate Python 3.11 environment; do not install the legacy-h2o group into it.
On macOS and Linux:
UV_PROJECT_ENVIRONMENT=.venv-tabular-neural uv sync --group tabular-neural --group notebook-execution --no-default-groups
.venv-tabular-neural/bin/python -m ipykernel install --user --name gwu-rml-tabular-neural --display-name "Python (GWU RML Tabular Neural)"
On Windows PowerShell:
$env:UV_PROJECT_ENVIRONMENT = ".venv-tabular-neural"
uv sync --group tabular-neural --group notebook-execution --no-default-groups
.venv-tabular-neural\Scripts\python.exe -m ipykernel install --user --name gwu-rml-tabular-neural --display-name "Python (GWU RML Tabular Neural)"
Select the Python (GWU RML Tabular Neural) kernel in VS Code. Kumo Tabular downloads its pretrained weights the first time it runs, so first use requires an internet connection. Kumo uses CUDA or Apple MPS when PyTorch reports it available, and otherwise falls back to CPU. NAMpy uses the devices exposed by the installed TensorFlow build; in the tested environment this was CPU.
To use JupyterLab in the default H2O-3 environment, run uv run jupyter lab from the repository root.
See the VS Code Jupyter guide for kernel selection details.
The software is licensed under the MIT License. Course content is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).