Skip to content

Commit 7902ccf

Browse files
committed
Fix odsc-west tutorial
Note: mandatory check (NEED_CHECK) was skipped ref:8651f256b7ab9575995f6d617d05c6445d895715
1 parent 98664ef commit 7902ccf

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

events/2019_10_30_odsc_west.ipynb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
"cell_type": "code",
332332
"execution_count": null,
333333
"metadata": {
334-
"scrolled": false
334+
"scrolled": true
335335
},
336336
"outputs": [],
337337
"source": [
@@ -905,7 +905,11 @@
905905
"import shap\n",
906906
"\n",
907907
"shap.initjs()\n",
908-
"shap.force_plot(expected_value, shap_values[2,:], X.iloc[2,:])"
908+
"shap.force_plot(\n",
909+
" expected_value,\n",
910+
" shap_values[2,:],\n",
911+
" feature_names=train_pool.get_feature_names()\n",
912+
")"
909913
]
910914
},
911915
{
@@ -914,7 +918,11 @@
914918
"metadata": {},
915919
"outputs": [],
916920
"source": [
917-
"shap.force_plot(expected_value, shap_values[0,:], X.iloc[0,:])"
921+
"shap.force_plot(\n",
922+
" expected_value,\n",
923+
" shap_values[0,:],\n",
924+
" feature_names=train_pool.get_feature_names()\n",
925+
")"
918926
]
919927
},
920928
{
@@ -985,9 +993,7 @@
985993
"x = [0, 3, 2]\n",
986994
"\n",
987995
"raw_pred = model.predict(x, prediction_type='RawFormulaVal')\n",
988-
"print(raw_pred)\n",
989-
"\n",
990-
"assert sigmoid(raw_pred) == model.predict_proba(x)[1]"
996+
"print(raw_pred)"
991997
]
992998
},
993999
{

0 commit comments

Comments
 (0)