Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "markdown",
"source": [
"# Insurance charges prediction [LGBM]\n",
"# Insurance charges prediction [LightGBM]\n",
"* Regression to predict the insurance charges based on medical and social data.\n",
"* Dataset: <https://www.kaggle.com/datasets/teertha/ushealthinsurancedataset>\n",
"\n",
Expand All @@ -27,7 +27,7 @@
{
"cell_type": "markdown",
"source": [
"## Install the needed python packages"
"## Install necessary python packages"
],
"metadata": {
"collapsed": false
Expand All @@ -51,6 +51,18 @@
},
"id": "797dd8f836bd3a03"
},
{
"cell_type": "markdown",
"source": [
"## Troubleshooting\n",
"\n",
"If you encounter a segmentation fault on macOS at any point during this tutorial, check: https://docs.giskard.ai/en/latest/contribute/dev-environment.html"
],
"metadata": {
"collapsed": false
},
"id": "e37ff3bea8055af3"
},
{
"cell_type": "markdown",
"source": [
Expand Down Expand Up @@ -458,16 +470,17 @@
"source": [
"# Uploading the test suite will automatically save the model, dataset, tests, slicing & transformation functions inside the Giskard UI server\n",
"# Create a Giskard client after having install the Giskard server (see documentation)\n",
"token = \"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInRva2VuX3R5cGUiOiJBUEkiLCJhdXRoIjoiUk9MRV9BRE1JTiIsImV4cCI6MTY5ODY3NzkwN30.J9BHtVtTGAugPExpUMUjoCHeR-Kh9hVHJ2S4Rac4ooc\" # Find it in Settings in the Giskard server\n",
"token = \"API_TOKEN\" # Find it in Settings in the Giskard server\n",
"\n",
"client = GiskardClient(\n",
" url=\"http://localhost:9000\", # URL of your Giskard instance\n",
" url=\"http://localhost:19000\", # URL of your Giskard instance\n",
" token=token\n",
")\n",
"\n",
"my_project = client.create_project(\"insurance_prediction\", \"insurance_prediction\", \"insurance_prediction\")\n",
"my_project = client.create_project(\"my_project\", \"PROJECT_NAME\", \"DESCRIPTION\")\n",
"\n",
"# Upload to the current project ✉️\n",
"test_suite.upload(client, \"insurance_prediction\")"
"test_suite.upload(client, \"my_project\")"
],
"metadata": {
"collapsed": false
Expand Down
2 changes: 1 addition & 1 deletion python-client/docs/tutorials/data-types/tabular/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@

:::::{grid-item}
:::{card} <h3><center>💸 Insurance charges prediction</center></h3>
:link: ../../../reference/notebooks/insurance_prediction_sklearn.ipynb
:link: ../../../reference/notebooks/insurance_prediction_lgbm.ipynb
:::
:::::
6 changes: 6 additions & 0 deletions python-client/docs/tutorials/libraries/lightgbm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@
:link: ../../../reference/notebooks/ieee_fraud_detection_adversarial_validation.ipynb
:::
:::::

:::::{grid-item}
:::{card} <h3><center>💸 Insurance charges prediction</center></h3>
:link: ../../../reference/notebooks/insurance_prediction_lgbm.ipynb
:::
:::::
6 changes: 1 addition & 5 deletions python-client/docs/tutorials/libraries/scikit-learn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,4 @@
:::
:::::

:::::{grid-item}
:::{card} <h3><center>💸 Insurance charges prediction</center></h3>
:link: ../../../reference/notebooks/insurance_prediction_sklearn.ipynb
:::
:::::

2 changes: 1 addition & 1 deletion python-client/docs/tutorials/tasks/regression/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

:::::{grid-item}
:::{card} <h3><center>💸 Insurance charges prediction</center></h3>
:link: ../../../reference/notebooks/insurance_prediction_sklearn.ipynb
:link: ../../../reference/notebooks/insurance_prediction_lgbm.ipynb
:::
:::::