diff --git a/doc/changes/changes_3.1.0.md b/doc/changes/changes_3.1.0.md index 1fecf6be..3fdf45a9 100644 --- a/doc/changes/changes_3.1.0.md +++ b/doc/changes/changes_3.1.0.md @@ -4,3 +4,10 @@ * #324 Used pytest-plugins in notebook tests. +## Bug Fixes + +* #326 + - Scikit-learn notebook: call model's fit and predict with numpy arrays; + - Ibis notebook: added a link to this notebook on the front page; + - Configuration: added internal bucket-fs host name and port; + - Upgraded jupyterlab to 4.2.5. diff --git a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/jupyter_requirements.txt b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/jupyter_requirements.txt index 015b370d..52278e38 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/jupyter_requirements.txt +++ b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/jupyter_requirements.txt @@ -1,2 +1,2 @@ -jupyterlab==4.1.1 +jupyterlab==4.2.5 pexpect==4.8.0 diff --git a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_predict_udf.ipynb b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_predict_udf.ipynb index a0e0f190..3f09a01c 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_predict_udf.ipynb +++ b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_predict_udf.ipynb @@ -93,7 +93,7 @@ " # Call the model to get the predictions. Omit the first column in the input\n", " # which holds the sample IDs.\n", " df_features = X_pred.drop(X_pred.columns[0], axis=1)\n", - " y_pred = model.predict(df_features)\n", + " y_pred = model.predict(df_features.values)\n", "\n", " # Combine predictions with the sample IDs.\n", " df_rowid = X_pred[X_pred.columns[0]].reset_index(drop=True)\n", diff --git a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_train_telescope.ipynb b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_train_telescope.ipynb index 636eaac0..645f024e 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_train_telescope.ipynb +++ b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/sklearn/sklearn_train_telescope.ipynb @@ -91,7 +91,7 @@ "\n", "# Create and train the model.\n", "model = tree.DecisionTreeClassifier()\n", - "model.fit(X_train.values, y_train)\n", + "model.fit(X_train.values, y_train.values)\n", "\n", "print(f\"Training took: {stopwatch}\")" ] @@ -118,7 +118,7 @@ "import matplotlib.pyplot as plt\n", "\n", "# Make the predictions on the validation set.\n", - "y_pred = model.predict(X_valid)\n", + "y_pred = model.predict(X_valid.values)\n", "\n", "# Build and display the confusion matrix.\n", "cm = confusion_matrix(y_valid, y_pred, labels=model.classes_)\n", diff --git a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/start.ipynb b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/start.ipynb index e9696091..d391af3c 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/start.ipynb +++ b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/start.ipynb @@ -41,6 +41,7 @@ "1. [Transformers extension](transformers/te_introduction.ipynb)\n", "1. [Cloud store](cloud/01_import_data.ipynb)\n", "1. [Script Languages Container](script_languages_container/using_the_script_languages_container_tool.ipynb)\n", + "1. [Using IBIS dataframe library](ibis/quickstart.ipynb)\n", "\n" ] } diff --git a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/utils/main_config_ui.ipynb b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/utils/main_config_ui.ipynb index ab4ef1b4..05f20d71 100644 --- a/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/utils/main_config_ui.ipynb +++ b/exasol/ds/sandbox/runtime/ansible/roles/jupyter/files/notebook/utils/main_config_ui.ipynb @@ -104,7 +104,7 @@ "\n", " inputs = [\n", " [\n", - " ('Host Name', widgets.Text(value=conf.get(CKey.db_host_name, '127.0.0.1')), CKey.db_host_name),\n", + " ('Host Name', widgets.Text(value=conf.get(CKey.db_host_name, 'localhost')), CKey.db_host_name),\n", " ('Port', widgets.IntText(value=int(conf.get(CKey.db_port, '8563'))), CKey.db_port),\n", " ('User Name', widgets.Text(value=conf.get(CKey.db_user)), CKey.db_user),\n", " ('Password', widgets.Password(value=conf.get(CKey.db_password)), CKey.db_password),\n", @@ -113,8 +113,10 @@ " CKey.db_encryption)\n", " ],\n", " [\n", - " ('Host Name', widgets.Text(value=conf.get(CKey.bfs_host_name, '127.0.0.1')), CKey.bfs_host_name),\n", - " ('Port', widgets.IntText(value=int(conf.get(CKey.bfs_port, '2580'))), CKey.bfs_port),\n", + " ('External Host Name', widgets.Text(value=conf.get(CKey.bfs_host_name, 'localhost')), CKey.bfs_host_name),\n", + " ('Internal Host Name', widgets.Text(value=conf.get(CKey.bfs_host_name, 'localhost')), CKey.bfs_internal_host_name),\n", + " ('External Port', widgets.IntText(value=int(conf.get(CKey.bfs_port, '2580'))), CKey.bfs_port),\n", + " ('Internal Port', widgets.IntText(value=int(conf.get(CKey.bfs_port, '2580'))), CKey.bfs_internal_port),\n", " ('User Name', widgets.Text(value=conf.get(CKey.bfs_user)), CKey.bfs_user),\n", " ('Password', widgets.Password(value=conf.get(CKey.bfs_password)), CKey.bfs_password),\n", " ('Service Name', widgets.Text(value=conf.get(CKey.bfs_service, 'bfsdefault')), CKey.bfs_service),\n",