Merge pull request #70 from wchill/fix_macos_sigsegv

Fix segfault under certain conditions when running AutoML pipelines on MacOS
This commit is contained in:
Roope Astala
2018-11-05 19:04:14 -05:00
committed by GitHub
2 changed files with 19 additions and 3 deletions

17
automl/automl_env_mac.yml Normal file
View File

@@ -0,0 +1,17 @@
name: azure_automl
dependencies:
# The python interpreter version.
# Currently Azure ML only supports 3.5.2 and later.
- python=3.6
- nb_conda
- matplotlib
- numpy>=1.15.3
- cython
- urllib3<1.24
- scipy>=0.19.0,<0.20.0
- scikit-learn>=0.18.0,<=0.19.1
- pandas>=0.22.0,<0.23.0
- pip:
# Required packages for AzureML execution, history, and data preparation.
- azureml-sdk[automl,notebooks]
- pandas_ml

View File

@@ -11,7 +11,7 @@ fi
if [ "$AUTOML_ENV_FILE" == "" ] if [ "$AUTOML_ENV_FILE" == "" ]
then then
AUTOML_ENV_FILE="automl_env.yml" AUTOML_ENV_FILE="automl_env_mac.yml"
fi fi
if [ ! -f $AUTOML_ENV_FILE ]; then if [ ! -f $AUTOML_ENV_FILE ]; then
@@ -29,6 +29,7 @@ else
conda install lightgbm -c conda-forge -y && conda install lightgbm -c conda-forge -y &&
jupyter nbextension install --py azureml.train.widgets --user && jupyter nbextension install --py azureml.train.widgets --user &&
jupyter nbextension enable --py azureml.train.widgets --user && jupyter nbextension enable --py azureml.train.widgets --user &&
pip install numpy==1.15.3
echo "" && echo "" &&
echo "" && echo "" &&
echo "***************************************" && echo "***************************************" &&
@@ -44,5 +45,3 @@ if [ $? -gt 0 ]
then then
echo "Installation failed" echo "Installation failed"
fi fi