Skip to content

Commit

Permalink
updated imd notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
swag2198 committed Jun 13, 2023
1 parent 1b9eeab commit f4d532e
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions examples/imd/imd_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "bcf03735",
"id": "dbb4fcdc",
"metadata": {},
"source": [
"# End to end example on using model differencing\n",
Expand All @@ -14,23 +14,12 @@
},
{
"cell_type": "markdown",
"id": "dacce2d6",
"id": "3701edc0",
"metadata": {},
"source": [
"## Setup"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "590ccede",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append('../../')"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down Expand Up @@ -260,7 +249,7 @@
},
{
"cell_type": "markdown",
"id": "5cf29fe5",
"id": "1c65bc68",
"metadata": {},
"source": [
"## Using the diff-rules\n",
Expand All @@ -271,7 +260,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "4e6f84d8",
"id": "2aa7f744",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -446,7 +435,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "23bc1dbd",
"id": "acfd402b",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -549,6 +538,14 @@
"from IPython.display import display, Image"
]
},
{
"cell_type": "markdown",
"id": "eab7bb56",
"metadata": {},
"source": [
"Note that (one or more) diff-rules are grouped under the dotted or nodes. For example, the node `vo0` has only 1 diffrule that has the following predicates: `worst perimeter <= 117.4500` --> `worst concave points <= 0.1348` --> `area error <= 49.1450` (hits the or node `vo0`, surrogate (2) is pure with only one cyan colored leaf) --> `worst area > 960.5000` --> `worst fractal dimension > 0.0812` (brings to the beige colored pure leaf node for surrogate (1) which disagrees with the cyan colored leaf node of surrogate (2) as grouped under `vo0`)."
]
},
{
"cell_type": "code",
"execution_count": 14,
Expand Down Expand Up @@ -663,7 +660,7 @@
},
{
"cell_type": "markdown",
"id": "6c95ea10",
"id": "d44422bd",
"metadata": {},
"source": [
"## Visualizing separate surrogates\n",
Expand Down

0 comments on commit f4d532e

Please sign in to comment.