Warning, /iDDS/main/tools/container/singularity/idds_ml.def is written in an unsupported language. File is not indexed.
0001 Bootstrap: docker
0002 From: centos:7
0003
0004 %files
0005 hyperparameteropt_nevergrad.py /opt
0006 bdt_0409 /opt
0007
0008 %post
0009 yum update -q -y\
0010 && yum install -q -y wget make git gcc openssl-devel bzip2-devel libffi-devel \
0011 && cd /usr/src \
0012 && wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz \
0013 && tar xzf Python-3.7.4.tgz \
0014 && cd Python-3.7.4 \
0015 && ./configure --enable-optimizations \
0016 && make altinstall \
0017 && rm -rf /usr/src/Python-3.7.4.tgz \
0018 && yum clean all \
0019 && echo "set python3.7 as default" \
0020 && alternatives --install /usr/bin/python python /usr/bin/python2 50 \
0021 && alternatives --install /usr/bin/python python /usr/local/bin/python3.7 70 \
0022 && alternatives --set python /usr/local/bin/python3.7 \
0023 && echo "symlink pip" \
0024 && ln -s /usr/local/bin/pip3.7 /usr/bin/pip \
0025 && pip install --no-cache-dir --upgrade pip pipenv setuptools wheel \
0026 && ln -s /usr/local/bin/pipenv /usr/bin/pipenv \
0027 && echo "set the locale" \
0028 && localedef --quiet -c -i en_US -f UTF-8 en_US.UTF-8
0029
0030 pip install --upgrade pip
0031 pip install nevergrad
0032 pip install theano keras h5py matplotlib tabulate
0033 pip install bayesian-optimization
0034 pip install xgboost
0035 pip install lightgbm
0036
0037
0038 %environment
0039 # export LC_ALL=C
0040 # export PATH=/usr/games:$PATH
0041 export LANG=en_US.UTF-8
0042 export LANGUAGE=en_US:en
0043 export LC_ALL=en_US.UTF-8
0044
0045 %labels
0046 Maintainer iDDS_HPO_Nevergrad(wen.guan@cern.ch)
0047 Version v1.0
0048
0049 %runscript
0050 echo "iDDS Nevergrad hyper parameter optimization plugin"