diff --git a/notebooks/features/hyperparameter_tuning/HyperOpt-SynapseML.ipynb b/notebooks/features/hyperparameter_tuning/HyperOpt-SynapseML.ipynb index 0911458fdb..50910ae895 100644 --- a/notebooks/features/hyperparameter_tuning/HyperOpt-SynapseML.ipynb +++ b/notebooks/features/hyperparameter_tuning/HyperOpt-SynapseML.ipynb @@ -517,4 +517,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file diff --git a/notebooks/features/isolation_forest/IsolationForest - Multivariate Anomaly Detection.ipynb b/notebooks/features/isolation_forest/IsolationForest - Multivariate Anomaly Detection.ipynb index 6e83f1160a..23dace73ce 100644 --- a/notebooks/features/isolation_forest/IsolationForest - Multivariate Anomaly Detection.ipynb +++ b/notebooks/features/isolation_forest/IsolationForest - Multivariate Anomaly Detection.ipynb @@ -27,6 +27,24 @@ " - If you are running it on Synapse, you'll need to [create an AML workspace and set up linked Service](https://microsoft.github.io/SynapseML/docs/next/mlflow/installation/). \n" ] }, + { + "cell_type": "code", + "execution_count": null, + "outputs": [], + "source": [ + "import subprocess\n", + "import sys\n", + "\n", + "for package in [\"sqlparse\", \"raiwidgets\", \"interpret-community\"]:\n", + " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", package])" + ], + "metadata": { + "collapsed": false, + "pycharm": { + "name": "#%%\n" + } + } + }, { "cell_type": "markdown", "metadata": { @@ -145,25 +163,10 @@ "experiment_name = f\"/Shared/isolation_forest_experiment-{str(uuid.uuid1())}/\"\n", "model_name = f\"isolation-forest-model\"\n", "if running_on_synapse():\n", - " import subprocess\n", - " import sys\n", - " from pyspark.sql.functions import udf\n", " from synapse.ml.core.platform import materializing_display as display\n", "\n", " # use regular display when running on interactive notebook\n", - " # from notebookutils.visualization import display\n", - "\n", - " for package in [\"sqlparse\", \"raiwidgets\", \"interpret-community\"]:\n", - " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", package])" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pip install --upgrade interpret-community" + " # from notebookutils.visualization import display" ] }, {