Skip to content

Commit 997a35a

Browse files
committed
Updated automl_setup scripts
1 parent dd6317a commit 997a35a

File tree

4 files changed

+72
-97
lines changed

4 files changed

+72
-97
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
name: azure_automl
2-
dependencies:
3-
# The python interpreter version.
4-
# Currently Azure ML only supports 3.5.2 and later.
5-
- python>=3.5.2,<3.6.8
6-
- nb_conda
7-
- matplotlib==2.1.0
8-
- numpy>=1.11.0,<1.15.0
9-
- cython
10-
- urllib3<1.24
11-
- scipy>=1.0.0,<=1.1.0
12-
- scikit-learn>=0.18.0,<=0.19.1
13-
- pandas>=0.22.0,<0.23.0
14-
- tensorflow>=1.12.0
15-
- py-xgboost<=0.80
16-
17-
- pip:
18-
# Required packages for AzureML execution, history, and data preparation.
19-
- azureml-sdk[automl,explain]
20-
- azureml-widgets
21-
- pandas_ml
22-
1+
name: azure_automl
2+
dependencies:
3+
# The python interpreter version.
4+
# Currently Azure ML only supports 3.5.2 and later.
5+
- python>=3.5.2,<3.6.8
6+
- nb_conda
7+
- matplotlib==2.1.0
8+
- numpy>=1.11.0,<=1.16.2
9+
- cython
10+
- urllib3<1.24
11+
- scipy>=1.0.0,<=1.1.0
12+
- scikit-learn>=0.19.0,<=0.20.3
13+
- pandas>=0.22.0,<0.23.0
14+
- py-xgboost<=0.80
15+
16+
- pip:
17+
# Required packages for AzureML execution, history, and data preparation.
18+
- azureml-sdk[automl,explain]
19+
- azureml-widgets
20+
- pandas_ml
21+

how-to-use-azureml/automated-machine-learning/automl_env_mac.yml

-23
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
@echo off
2-
set conda_env_name=%1
3-
set automl_env_file=%2
4-
set options=%3
5-
set PIP_NO_WARN_SCRIPT_LOCATION=0
6-
7-
IF "%conda_env_name%"=="" SET conda_env_name="azure_automl"
8-
IF "%automl_env_file%"=="" SET automl_env_file="automl_env.yml"
9-
10-
IF NOT EXIST %automl_env_file% GOTO YmlMissing
11-
12-
call conda activate %conda_env_name% 2>nul:
13-
14-
if not errorlevel 1 (
15-
echo Upgrading azureml-sdk[automl,notebooks,explain] in existing conda environment %conda_env_name%
16-
call pip install --upgrade azureml-sdk[automl,notebooks,explain]
17-
if errorlevel 1 goto ErrorExit
18-
) else (
19-
call conda env create -f %automl_env_file% -n %conda_env_name%
20-
)
21-
22-
call conda activate %conda_env_name% 2>nul:
23-
if errorlevel 1 goto ErrorExit
24-
25-
call python -m ipykernel install --user --name %conda_env_name% --display-name "Python (%conda_env_name%)"
26-
27-
REM azureml.widgets is now installed as part of the pip install under the conda env.
28-
REM Removing the old user install so that the notebooks will use the latest widget.
29-
call jupyter nbextension uninstall --user --py azureml.widgets
30-
31-
echo.
32-
echo.
33-
echo ***************************************
34-
echo * AutoML setup completed successfully *
35-
echo ***************************************
36-
IF NOT "%options%"=="nolaunch" (
37-
echo.
38-
echo Starting jupyter notebook - please run the configuration notebook
39-
echo.
40-
jupyter notebook --log-level=50 --notebook-dir='..\..'
41-
)
42-
43-
goto End
44-
45-
:YmlMissing
46-
echo File %automl_env_file% not found.
47-
48-
:ErrorExit
49-
echo Install failed
50-
1+
@echo off
2+
set conda_env_name=%1
3+
set automl_env_file=%2
4+
set options=%3
5+
set PIP_NO_WARN_SCRIPT_LOCATION=0
6+
7+
IF "%conda_env_name%"=="" SET conda_env_name="azure_automl"
8+
IF "%automl_env_file%"=="" SET automl_env_file="automl_env.yml"
9+
10+
IF NOT EXIST %automl_env_file% GOTO YmlMissing
11+
12+
call conda activate %conda_env_name% 2>nul:
13+
14+
if not errorlevel 1 (
15+
echo Upgrading azureml-sdk[automl,notebooks,explain] in existing conda environment %conda_env_name%
16+
call pip install --upgrade azureml-sdk[automl,notebooks,explain]
17+
if errorlevel 1 goto ErrorExit
18+
) else (
19+
call conda env create -f %automl_env_file% -n %conda_env_name%
20+
)
21+
22+
call conda activate %conda_env_name% 2>nul:
23+
if errorlevel 1 goto ErrorExit
24+
25+
call python -m ipykernel install --user --name %conda_env_name% --display-name "Python (%conda_env_name%)"
26+
27+
REM azureml.widgets is now installed as part of the pip install under the conda env.
28+
REM Removing the old user install so that the notebooks will use the latest widget.
29+
call jupyter nbextension uninstall --user --py azureml.widgets
30+
31+
echo.
32+
echo.
33+
echo ***************************************
34+
echo * AutoML setup completed successfully *
35+
echo ***************************************
36+
IF NOT "%options%"=="nolaunch" (
37+
echo.
38+
echo Starting jupyter notebook - please run the configuration notebook
39+
echo.
40+
jupyter notebook --log-level=50 --notebook-dir='..\..'
41+
)
42+
43+
goto End
44+
45+
:YmlMissing
46+
echo File %automl_env_file% not found.
47+
48+
:ErrorExit
49+
echo Install failed
50+
5151
:End

how-to-use-azureml/automated-machine-learning/automl_setup_mac.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212

1313
if [ "$AUTOML_ENV_FILE" == "" ]
1414
then
15-
AUTOML_ENV_FILE="automl_env_mac.yml"
15+
AUTOML_ENV_FILE="automl_env.yml"
1616
fi
1717

1818
if [ ! -f $AUTOML_ENV_FILE ]; then
@@ -31,7 +31,6 @@ else
3131
conda install lightgbm -c conda-forge -y &&
3232
python -m ipykernel install --user --name $CONDA_ENV_NAME --display-name "Python ($CONDA_ENV_NAME)" &&
3333
jupyter nbextension uninstall --user --py azureml.widgets &&
34-
pip install numpy==1.15.3 &&
3534
echo "" &&
3635
echo "" &&
3736
echo "***************************************" &&

0 commit comments

Comments
 (0)