|
5 | 5 | "id": "58b9498051a5294b", |
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | | - "# SI Graph Plot\n", |
| 8 | + "# API Example: SI Graph Plot\n", |
9 | 9 | "\n", |
10 | 10 | "This notebook is designed to demonstrate (and to document) how to use the `shapiq.si_graph` plot.\n", |
11 | 11 | "The SI-graph-plot visualizes all interactions of computed Shapley Interactions, including those of higher order, as a network.\n", |
|
49 | 49 | "id": "b857f08efa0c61d4", |
50 | 50 | "metadata": {}, |
51 | 51 | "source": [ |
52 | | - "\n", |
53 | 52 | "## General Use\n", |
54 | 53 | "The easiest use is simply calling interaction_values.si_graph_plot() on the interaction values you want to visualize. \n", |
55 | 54 | "But first, we import the needed modules and train a model we want to explain.\n", |
|
215 | 214 | "id": "11e70372add8e9a", |
216 | 215 | "metadata": {}, |
217 | 216 | "source": [ |
218 | | - "# Adjusting the positions\n", |
| 217 | + "## Adjusting the positions\n", |
219 | 218 | "The positions of the nodes are determined automatically.\n", |
220 | 219 | "The base case is a circular layout, we can change it to a spring layout by setting ``circular_layout = False``.\n", |
221 | 220 | "It is also possible to set the positions manually, with a dict mapping the players to their respective positions.\n", |
|
228 | 227 | "id": "83927d1f7f4f63e6", |
229 | 228 | "metadata": {}, |
230 | 229 | "source": [ |
231 | | - "# Focusing on specific interactions\n", |
| 230 | + "## Focusing on specific interactions\n", |
232 | 231 | "When plotting interaction values of higher orders, the number of edges can make it difficult to read.\n", |
233 | 232 | "If we want to simplify our graph, we can filter and visualize only a subset of interactions that are most relevant.\n", |
234 | 233 | "For example, we can focus on interactions above a certain threshold, select the 10 strongest interactions (by absolute value), or limit our view to only positive or negative interactions.\n", |
|
0 commit comments