Skip to content

Commit

Permalink
docs: adjust to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed May 21, 2024
1 parent f472815 commit de5ccec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"source": [
"extra_names = [\"id\", \"name\", \"ticket\", \"cabin\", \"port_embarked\", \"age\", \"fare\"]\n",
"\n",
"train_tabular_dataset = transformed_table.to_tabular_dataset(\"survived\", extra_names)"
"train_tabular_dataset = transformed_table.to_tabular_dataset(\"survived\", extra_names=extra_names)"
],
"metadata": {
"collapsed": false
Expand Down Expand Up @@ -185,7 +185,7 @@
"encoder = OneHotEncoder().fit(test_table, [\"sex\"])\n",
"testing_table = encoder.transform(testing_table)\n",
"\n",
"test_tabular_dataset = testing_table.to_tabular_dataset(\"survived\", extra_names)\n",
"test_tabular_dataset = testing_table.to_tabular_dataset(\"survived\", extra_names=extra_names)\n",
"fitted_model.accuracy(test_tabular_dataset)\n"
],
"metadata": {
Expand Down
28 changes: 14 additions & 14 deletions docs/tutorials/regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -55,8 +55,8 @@
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -70,13 +70,13 @@
"source": [
"extra_names = [\"id\"]\n",
"\n",
"train_tabular_dataset = train_table.to_tabular_dataset(\"price\", extra_names)\n"
"train_tabular_dataset = train_table.to_tabular_dataset(\"price\", extra_names=extra_names)\n"
],
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -96,8 +96,8 @@
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -120,8 +120,8 @@
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
Expand All @@ -135,15 +135,15 @@
{
"cell_type": "code",
"source": [
"test_tabular_dataset = testing_table.to_tabular_dataset(\"price\", extra_names)\n",
"test_tabular_dataset = testing_table.to_tabular_dataset(\"price\", extra_names=extra_names)\n",
"\n",
"fitted_model.mean_absolute_error(test_tabular_dataset)\n"
],
"metadata": {
"collapsed": false
},
"outputs": [],
"execution_count": null
"execution_count": null,
"outputs": []
}
],
"metadata": {
Expand Down

0 comments on commit de5ccec

Please sign in to comment.