From d0e2d70aa2904e6e5fa23ebdf1717421254e5ad2 Mon Sep 17 00:00:00 2001 From: Remi Tschupp Date: Mon, 1 Jul 2024 12:10:39 +0200 Subject: [PATCH] Other code for using on collab --- titanic/titanic_models.ipynb | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/titanic/titanic_models.ipynb b/titanic/titanic_models.ipynb index 841035b..68e06b1 100644 --- a/titanic/titanic_models.ipynb +++ b/titanic/titanic_models.ipynb @@ -71,7 +71,8 @@ "metadata": {}, "outputs": [], "source": [ - "gen_dirname = os.path.dirname(os.path.abspath(''))" + "gen_dirname = os.path.dirname(os.path.abspath(''))\n", + "# gen_dirname = os.path.abspath('') # In case use on collab switch comment" ] }, { @@ -248,6 +249,26 @@ "## MLFlow part" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "More code in case this is used on collab" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# # run tracking UI in the background\n", + "# get_ipython().system_raw(\"mlflow ui &\")\n", + "\n", + "# from google.colab import output\n", + "# output.serve_kernel_port_as_window(5000)" + ] + }, { "cell_type": "markdown", "metadata": {},