-
Notifications
You must be signed in to change notification settings - Fork 57
/
gpyopt.sh
executable file
·55 lines (46 loc) · 1.43 KB
/
gpyopt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "###############################################"
echo "# GPy and GPyOpt "
echo "###############################################"
echo "#"
echo "# Gaussian process optimization using GPy. "
echo "# Performs global optimization with different"
echo "# acquisition functions. Among other functionalities,"
echo "# it is possible to use GPyOpt to optimize physical "
echo "# experiments (sequentially or in batches) and tune "
echo "# the parameters of Machine Learning algorithms."
echo "#"
echo "# https://github.com/SheffieldML/GPyOpt "
echo "# https://github.com/SheffieldML/GPy "
echo "#"
echo "# WARNING: local install on devel branch until the following issue fix is released:"
echo "#"
echo "# https://github.com/SheffieldML/GPyOpt/issues/85"
# pip2 install gpy gpyopt --user --upgrade
# pip3 install gpy gpyopt --user --upgrade
# GPy
cd ~/src
if [ ! -d ~/src/gpy ] ; then
git clone https://github.com/SheffieldML/GPy gpy
fi
cd gpy
git pull
pip install -e . --user --upgrade
pip2 install -e . --user --upgrade
# GPyOpt
cd ~/src
if [ ! -d ~/src/gpyopt ] ; then
git clone https://github.com/SheffieldML/GPyOpt gpyopt -b devel
fi
cd gpyopt
git pull
# pip could be python3, disabled until
# https://github.com/SheffieldML/GPyOpt/issues/163 is resolved
# pip install -e . --user --upgrade
pip2 install -e . --user --upgrade
cd $DIR