$ git clone https://gitlab.db.in.tum.de/MaxEmanuel/nn2sql
$ docker build . nn2sql
$ mkdir <pathforfigures>
$ docker run -v "<pathforfigures>":/figures nn2sql
$ ./prerun.sh # extracts data + binaries
$ ./run_benchmarks.sh # runs the benchmarks
(un)comment in run_benchmarks.sh:
#export MNISTATTSS="20"
export MNISTATTSS="20 200"
#export MNISTLIMITS="200 2000"
export MNISTLIMITS="2 20 200 2000"
$ sudo apt-get install python3 python3-pip r-base
$ pip3 install numpy
$ tar -xf umbra.tar.xz
$ cd mnist && tar -xzf mnist_train.csv.tgz
$ cd iris
$ python3 iris_bench.py > numpy_nn.csv
$ ./iris_sql92_bench.sh | ../umbra/bin/sql
$ ./iris_sql92_psql_bench.sh | psql
$ Rscript iris.r
$ cd mnist
$ python3 mnist_bench.py > numpy_mnist.csv
$ ./mnist_sql92_bench.sh | ../umbra/bin/sql
$ ../umbra/bin/sql < mnist_bench.sql
$ Rscript mnist.r