From 041bc3f4f2522197a805d149229572b2ae889f55 Mon Sep 17 00:00:00 2001
From: Aritz Martinez <aritz.martinez@tecnalia.com>
Date: Thu, 6 Feb 2020 12:48:19 +0100
Subject: [PATCH] Cleaning

---
 .gitignore       | 120 +++++++++++++++++++++++++++++++++++++++++++++++
 dql-mfea.yml     |  93 ++++++++++++++++++++++++++++++++++++
 install.sh       |  28 +++++++++++
 requirements.txt |  76 ++++++++++++++++++++++++++++++
 4 files changed, 317 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 dql-mfea.yml
 create mode 100755 install.sh
 create mode 100644 requirements.txt

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7d972af
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,120 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
+
+# Local
+OUTPUT/
+OUT/
+OUTPUT_*/
diff --git a/dql-mfea.yml b/dql-mfea.yml
new file mode 100644
index 0000000..e8bda35
--- /dev/null
+++ b/dql-mfea.yml
@@ -0,0 +1,93 @@
+name: dql-mfea
+channels:
+  - defaults
+dependencies:
+  - _libgcc_mutex=0.1=main
+  - _tflow_select=2.3.0=mkl
+  - absl-py=0.8.1=py37_0
+  - astor=0.8.0=py37_0
+  - blas=1.0=mkl
+  - c-ares=1.15.0=h7b6447c_1001
+  - ca-certificates=2020.1.1=0
+  - certifi=2019.11.28=py37_0
+  - cycler=0.10.0=py37_0
+  - dbus=1.13.12=h746ee38_0
+  - expat=2.2.6=he6710b0_0
+  - fontconfig=2.13.0=h9420a91_0
+  - freetype=2.9.1=h8a8886c_1
+  - gast=0.2.2=py37_0
+  - glib=2.63.1=h5a9c865_0
+  - google-pasta=0.1.8=py_0
+  - grpcio=1.16.1=py37hf8bcb03_1
+  - gst-plugins-base=1.14.0=hbbd80ab_1
+  - gstreamer=1.14.0=hb453b48_1
+  - h5py=2.10.0=py37h7918eee_0
+  - hdf5=1.10.4=hb1b8bf9_0
+  - icu=58.2=h9c2bf20_1
+  - intel-openmp=2019.4=243
+  - jpeg=9b=h024ee3a_2
+  - keras=2.2.4=0
+  - keras-applications=1.0.8=py_0
+  - keras-base=2.2.4=py37_0
+  - keras-preprocessing=1.1.0=py_1
+  - kiwisolver=1.1.0=py37he6710b0_0
+  - ld_impl_linux-64=2.33.1=h53a641e_7
+  - libedit=3.1.20181209=hc058e9b_0
+  - libffi=3.2.1=hd88cf55_4
+  - libgcc-ng=9.1.0=hdf63c60_0
+  - libgfortran-ng=7.3.0=hdf63c60_0
+  - libpng=1.6.37=hbc83047_0
+  - libprotobuf=3.11.2=hd408876_0
+  - libstdcxx-ng=9.1.0=hdf63c60_0
+  - libuuid=1.0.3=h1bed415_2
+  - libxcb=1.13=h1bed415_1
+  - libxml2=2.9.9=hea5a465_1
+  - markdown=3.1.1=py37_0
+  - matplotlib=3.1.3=py37_0
+  - matplotlib-base=3.1.3=py37hef1b27d_0
+  - mkl=2019.4=243
+  - mkl-service=2.3.0=py37he904b0f_0
+  - mkl_fft=1.0.15=py37ha843d7b_0
+  - mkl_random=1.1.0=py37hd6b4f25_0
+  - ncurses=6.1=he6710b0_1
+  - numpy=1.18.1=py37h4f9e942_0
+  - numpy-base=1.18.1=py37hde5b4d6_1
+  - openssl=1.1.1d=h7b6447c_3
+  - opt_einsum=3.1.0=py_0
+  - pcre=8.43=he6710b0_0
+  - pip=20.0.2=py37_1
+  - protobuf=3.11.2=py37he6710b0_0
+  - pyparsing=2.4.6=py_0
+  - pyqt=5.9.2=py37h05f1152_2
+  - python=3.7.6=h0371630_2
+  - python-dateutil=2.8.1=py_0
+  - pyyaml=5.3=py37h7b6447c_0
+  - qt=5.9.7=h5867ecd_1
+  - readline=7.0=h7b6447c_5
+  - scipy=1.4.1=py37h0b6359f_0
+  - setuptools=45.1.0=py37_0
+  - sip=4.19.8=py37hf484d3e_0
+  - six=1.14.0=py37_0
+  - sqlite=3.31.1=h7b6447c_0
+  - termcolor=1.1.0=py37_1
+  - tk=8.6.8=hbc83047_0
+  - tornado=6.0.3=py37h7b6447c_0
+  - webencodings=0.5.1=py37_1
+  - werkzeug=0.16.1=py_0
+  - wheel=0.34.2=py37_0
+  - wrapt=1.11.2=py37h7b6447c_0
+  - xz=5.2.4=h14c3975_4
+  - yaml=0.1.7=had09818_2
+  - zlib=1.2.11=h7b6447c_3
+  - pip:
+    - cloudpickle==1.2.2
+    - future==0.18.2
+    - keras-rl==0.4.2
+    - pyglet==1.4.10
+    - tb-nightly==1.14.0a20190603
+    - tensorboard==1.14.0
+    - tensorflow==1.14.0
+    - tensorflow-estimator==1.14.0
+    - tf-estimator-nightly==1.14.0.dev2019060501
+prefix: /home/amartinez/anaconda3/envs/dql-mfea
+
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..71448b5
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,28 @@
+pip install keras==2.2.4 keras-rl==0.4.2
+pip install tensorflow==1.14.0
+
+# Install gym
+echo ".........."
+echo "Downloading gym from https://github.com/openai/gym.git"
+
+if [[ -d "gym" ]];
+then
+	read -p "gym folder is going to be deleted. Agree?: [y]/n: " var
+	
+	var=${var:="y"}
+	
+	if [ ! "$var" = "y" ];
+	then
+		echo "Aborting"
+		exit
+	else
+		sudo rm -r gym
+	fi
+
+fi
+
+git clone https://github.com/openai/gym.git
+cd gym
+pip install -e .
+cd ../
+cp -r gym_update/* gym/gym/
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..9d8b2ea
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,76 @@
+# This file may be used to create an environment using:
+# $ conda create --name <env> --file <this file>
+# platform: linux-64
+_libgcc_mutex=0.1=main
+_tflow_select=2.3.0=mkl
+absl-py=0.8.1=py37_0
+astor=0.8.0=py37_0
+blas=1.0=mkl
+c-ares=1.15.0=h7b6447c_1001
+ca-certificates=2020.1.1=0
+certifi=2019.11.28=py37_0
+cycler=0.10.0=py37_0
+dbus=1.13.12=h746ee38_0
+expat=2.2.6=he6710b0_0
+fontconfig=2.13.0=h9420a91_0
+freetype=2.9.1=h8a8886c_1
+gast=0.2.2=py37_0
+glib=2.63.1=h5a9c865_0
+google-pasta=0.1.8=py_0
+grpcio=1.16.1=py37hf8bcb03_1
+gst-plugins-base=1.14.0=hbbd80ab_1
+gstreamer=1.14.0=hb453b48_1
+h5py=2.10.0=py37h7918eee_0
+hdf5=1.10.4=hb1b8bf9_0
+icu=58.2=h9c2bf20_1
+intel-openmp=2019.4=243
+jpeg=9b=h024ee3a_2
+kiwisolver=1.1.0=py37he6710b0_0
+ld_impl_linux-64=2.33.1=h53a641e_7
+libedit=3.1.20181209=hc058e9b_0
+libffi=3.2.1=hd88cf55_4
+libgcc-ng=9.1.0=hdf63c60_0
+libgfortran-ng=7.3.0=hdf63c60_0
+libpng=1.6.37=hbc83047_0
+libprotobuf=3.11.2=hd408876_0
+libstdcxx-ng=9.1.0=hdf63c60_0
+libuuid=1.0.3=h1bed415_2
+libxcb=1.13=h1bed415_1
+libxml2=2.9.9=hea5a465_1
+markdown=3.1.1=py37_0
+matplotlib=3.1.3=py37_0
+matplotlib-base=3.1.3=py37hef1b27d_0
+mkl=2019.4=243
+mkl-service=2.3.0=py37he904b0f_0
+mkl_fft=1.0.15=py37ha843d7b_0
+mkl_random=1.1.0=py37hd6b4f25_0
+ncurses=6.1=he6710b0_1
+numpy=1.18.1=py37h4f9e942_0
+numpy-base=1.18.1=py37hde5b4d6_1
+openssl=1.1.1d=h7b6447c_3
+opt_einsum=3.1.0=py_0
+pcre=8.43=he6710b0_0
+pip=20.0.2=py37_1
+protobuf=3.11.2=py37he6710b0_0
+pyparsing=2.4.6=py_0
+pyqt=5.9.2=py37h05f1152_2
+python=3.7.6=h0371630_2
+python-dateutil=2.8.1=py_0
+pyyaml=5.3=py37h7b6447c_0
+qt=5.9.7=h5867ecd_1
+readline=7.0=h7b6447c_5
+scipy=1.4.1=py37h0b6359f_0
+setuptools=45.1.0=py37_0
+sip=4.19.8=py37hf484d3e_0
+six=1.14.0=py37_0
+sqlite=3.31.1=h7b6447c_0
+termcolor=1.1.0=py37_1
+tk=8.6.8=hbc83047_0
+tornado=6.0.3=py37h7b6447c_0
+webencodings=0.5.1=py37_1
+werkzeug=0.16.1=py_0
+wheel=0.34.2=py37_0
+wrapt=1.11.2=py37h7b6447c_0
+xz=5.2.4=h14c3975_4
+yaml=0.1.7=had09818_2
+zlib=1.2.11=h7b6447c_3
-- 
GitLab