Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions notebooks/forest_inference_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"\n",
"The load function of the ForestInference class accepts the following parameters:\n",
"\n",
" filename : str\n",
" path : str\n",
" Path to saved model file in a treelite-compatible format\n",
" (See https://treelite.readthedocs.io/en/latest/treelite-api.html\n",
" output_class : bool\n",
Expand Down Expand Up @@ -268,7 +268,7 @@
"outputs": [],
"source": [
"fil_model = ForestInference.load(\n",
" filename=model_path,\n",
" model_path,\n",
" algo='BATCH_TREE_REORG',\n",
" output_class=True,\n",
" threshold=0.50,\n",
Expand Down Expand Up @@ -500,7 +500,7 @@
"source": [
"def worker_init(dask_worker, model_file='xgb.model'):\n",
" dask_worker.data[\"fil_model\"] = ForestInference.load(\n",
" filename=model_file,\n",
" model_file,\n",
" algo='BATCH_TREE_REORG',\n",
" output_class=True,\n",
" threshold=0.50,\n",
Expand Down