File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
how-to-use-azureml/automated-machine-learning Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ CONDA_ENV_NAME=$1
4+ AUTOML_ENV_FILE=$2
5+ OPTIONS=$3
6+ PIP_NO_WARN_SCRIPT_LOCATION=0
7+
8+ if [ " $CONDA_ENV_NAME " == " " ]
9+ then
10+ CONDA_ENV_NAME=" azure_automl"
11+ fi
12+
13+ if [ " $AUTOML_ENV_FILE " == " " ]
14+ then
15+ AUTOML_ENV_FILE=" automl_env.yml"
16+ fi
17+
18+ if [ ! -f $AUTOML_ENV_FILE ]; then
19+ echo " File $AUTOML_ENV_FILE not found"
20+ exit 1
21+ fi
22+
23+ if source activate $CONDA_ENV_NAME 2> /dev/null
24+ then
25+ echo " Upgrading azureml-sdk[automl,notebooks,explain] in existing conda environment" $CONDA_ENV_NAME
26+ pip install --upgrade azureml-sdk[automl,notebooks,explain] &&
27+ jupyter nbextension uninstall --user --py azureml.widgets
28+ else
29+ conda env create -f $AUTOML_ENV_FILE -n $CONDA_ENV_NAME &&
30+ source activate $CONDA_ENV_NAME &&
31+ python -m ipykernel install --user --name $CONDA_ENV_NAME --display-name " Python ($CONDA_ENV_NAME )" &&
32+ jupyter nbextension uninstall --user --py azureml.widgets &&
33+ echo " " &&
34+ echo " " &&
35+ echo " ***************************************" &&
36+ echo " * AutoML setup completed successfully *" &&
37+ echo " ***************************************" &&
38+ if [ " $OPTIONS " != " nolaunch" ]
39+ then
40+ echo " " &&
41+ echo " Starting jupyter notebook - please run the configuration notebook" &&
42+ echo " " &&
43+ jupyter notebook --log-level=50 --notebook-dir ' ../..'
44+ fi
45+ fi
46+
47+ if [ $? -gt 0 ]
48+ then
49+ echo " Installation failed"
50+ fi
51+
52+
You can’t perform that action at this time.
0 commit comments