This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:ai:responsible-ai-test [2025/06/05 15:02] – ddehamer | wiki:ai:responsible-ai-test [2025/06/16 20:09] (current) – [✅ Step 7: Add Responsible AI Analysis Tools] ddehamer | ||
|---|---|---|---|
| Line 139: | Line 139: | ||
| rai_insights.explainer.add() | rai_insights.explainer.add() | ||
| rai_insights.error_analysis.add() | rai_insights.error_analysis.add() | ||
| - | rai_insights.counterfactual.add(total_CFs=5, desired_class=' | + | rai_insights.counterfactual.add(total_CFs=10, desired_class=' |
| rai_insights.causal.add(treatment_features=categorical_cols) | rai_insights.causal.add(treatment_features=categorical_cols) | ||
| </ | </ | ||
| Line 172: | Line 172: | ||
| 🧪 **Expected Result**:\\ A dashboard is displayed inside the notebook. Interactive plots and controls are available for analysis. | 🧪 **Expected Result**:\\ A dashboard is displayed inside the notebook. Interactive plots and controls are available for analysis. | ||
| - | |||
| - | Download | ||
| NOTE: Due to the way that these URLs are deployed, this step will fail because the notebook sends the wrong headers and this is expected. | NOTE: Due to the way that these URLs are deployed, this step will fail because the notebook sends the wrong headers and this is expected. | ||
| + | NOTE: To deploy locally you need to follow the process below. | ||
| - | ==== Output | + | ==== Use Local Jupyter Notebook |
| - | {{: | + | |
| - | {{: | + | - Create a conda/venv environment with:< |
| - | {{:wiki: | + | pipx install raiwidgets responsibleai scikit-learn ipywidgets jupyter notebooks |
| - | {{: | + | |
| - | {{: | + | </ |
| - | {{: | + | - Launch local notebook from the directory you downloaded the file to using: |
| - | {{: | + | < |
| - | {{:wiki: | + | jupyter notebook |
| - | {{: | + | |
| - | {{: | + | </ |
| - | {{: | + | |
| - | {{: | + | - Open downloaded ipynb file. |
| - | {{: | + | - Rerun all steps in local notebook. |
| - | {{: | + | |
| + | ✅ It will render **inline** without CORS issues. | ||
| + | |||
| + | ==== Output ==== | ||
| + | {{: | ||
| [[ai_knowledge|AI Knowledge]] | [[ai_knowledge|AI Knowledge]] | ||