Skip to content

Commit ac2ac11

Browse files
committed
Added some first example notebooks on how to use HyperSHAP.
1 parent 90a17d6 commit ac2ac11

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/explanation-task-example.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"\n",
8787
"from hypershap.task import ExplanationTask\n",
8888
"\n",
89+
"# creating the ExplanationTask\n",
8990
"et = ExplanationTask.from_function(\n",
9091
" config_space=cs,\n",
9192
" function=eval_fun,\n",
@@ -167,6 +168,7 @@
167168
"model = RandomForestRegressor()\n",
168169
"model.fit(X, y)\n",
169170
"\n",
171+
"# creating the ExplanationTask\n",
170172
"et = ExplanationTask.from_base_model(config_space=cs, base_model=model)"
171173
]
172174
}

0 commit comments

Comments
 (0)