|
2 | 2 | "cells": [ |
3 | 3 | { |
4 | 4 | "cell_type": "code", |
5 | | - "execution_count": null, |
| 5 | + "execution_count": 1, |
6 | 6 | "id": "79de156f", |
7 | 7 | "metadata": {}, |
8 | 8 | "outputs": [ |
9 | 9 | { |
10 | 10 | "name": "stderr", |
11 | 11 | "output_type": "stream", |
12 | 12 | "text": [ |
13 | | - "/home/tobias/programming/cloudexplain/ce-mlflow-extension/ce-mlflow-extension/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", |
| 13 | + "c:\\programming\\cloudexplain\\xflow\\.venv\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", |
14 | 14 | " from .autonotebook import tqdm as notebook_tqdm\n" |
15 | 15 | ] |
16 | 16 | } |
|
42 | 42 | }, |
43 | 43 | { |
44 | 44 | "cell_type": "code", |
45 | | - "execution_count": null, |
| 45 | + "execution_count": 3, |
46 | 46 | "id": "0da5d7e2", |
47 | 47 | "metadata": {}, |
48 | 48 | "outputs": [ |
49 | 49 | { |
50 | 50 | "name": "stdout", |
51 | 51 | "output_type": "stream", |
52 | 52 | "text": [ |
53 | | - "Loaded bundle.js content (218107 characters)\n", |
54 | | - "Saved report data to test_report_data.json\n", |
55 | | - "logged to test_report.html\n", |
56 | | - "Feature importance report logged to MLflow: reports/test_report_auto_mpg.html\n", |
57 | | - "Run ID: 72ea715bfe9c42bc840388933f6999a8. If you are running mlflow locally use:\n", |
| 53 | + "Loaded bundle.js content (225719 characters)\n", |
| 54 | + "Feature importance report logged to MLflow: reports/feature_importance_report.html\n", |
| 55 | + "Run ID: 7521c3f260f84a5d8e038a13bc91498b. If you are running mlflow locally use:\n", |
58 | 56 | "python -m mlflow ui --port 5000\n", |
59 | | - "Then open http://localhost:5000/#/experiments/921177506761828334/runs/72ea715bfe9c42bc840388933f6999a8 to view the report.\n" |
| 57 | + "Then open http://localhost:5000/#/experiments/557047036753041520/runs/7521c3f260f84a5d8e038a13bc91498b to view the report. Note: it's important to start mlflow in the directory in which you execute the notebook.\n" |
60 | 58 | ] |
61 | 59 | } |
62 | 60 | ], |
|
91 | 89 | " feature_encodings = {'cylinders_encoded': {0: '3', 1: '4', 2: '5', 3: '6', 4: '8'},\n", |
92 | 90 | " 'model_encoded': {0: 'Super 70', 1: 'Super 71', 2: 'Low 72', 3: 'Nice 73', 4: 'Great 74', 5: 'Lame 75', 6: 'High 76', 7: '77', 8: '78', 9: '79', 10: '80', 11: '81', 12: '82'},\n", |
93 | 91 | " 'origin_encoded': {0: 'Afghanistan', 1: 'Bangladesh', 2: 'Maui'}}\n", |
94 | | - " artifact_path = plugin.log_feature_importance_report(\n", |
| 92 | + " artifact_path = plugin.log_xai_report(\n", |
95 | 93 | " feature_names=list(X.columns),\n", |
96 | 94 | " shap_values=shap_values,\n", |
97 | | - " report_name=\"test_report_auto_mpg.html\",\n", |
98 | 95 | " feature_encodings=feature_encodings\n", |
99 | 96 | " )\n", |
100 | 97 | " run_id = mlflow.active_run().info.run_id\n", |
|
119 | 116 | "name": "python", |
120 | 117 | "nbconvert_exporter": "python", |
121 | 118 | "pygments_lexer": "ipython3", |
122 | | - "version": "3.12.3" |
| 119 | + "version": "3.13.5" |
123 | 120 | } |
124 | 121 | }, |
125 | 122 | "nbformat": 4, |
|
0 commit comments