From 01fd5933ed95991b00ef8e830c630d56f3917459 Mon Sep 17 00:00:00 2001 From: Chad Estioco Date: Wed, 19 Oct 2016 05:13:35 +0800 Subject: [PATCH] Reorganize code with all the benefit of my software engineering experience! --- python/__init__.py | 0 python/requirements.txt | 5 +++++ python/stochastic/__init__.py | 0 .../adaptive_random_search.py | 0 .../guided_local_search.py | 0 .../iterated_local_search.py | 0 .../{2_Stochastic_Algorithms => stochastic}/random_search.py | 0 python/{2_Stochastic_Algorithms => stochastic}/stochastic.py | 0 .../stochastic_hill_climbing.py | 0 python/stochastic/tests/__init__.py | 0 .../tests}/adaptive_random_search_tests.py | 0 .../tests}/random_search_tests.py | 0 .../tests}/stochastic_hill_climbing_tests.py | 0 .../tests}/stochastic_tests.py | 0 14 files changed, 5 insertions(+) create mode 100644 python/__init__.py create mode 100644 python/requirements.txt create mode 100644 python/stochastic/__init__.py rename python/{2_Stochastic_Algorithms => stochastic}/adaptive_random_search.py (100%) rename python/{2_Stochastic_Algorithms => stochastic}/guided_local_search.py (100%) rename python/{2_Stochastic_Algorithms => stochastic}/iterated_local_search.py (100%) rename python/{2_Stochastic_Algorithms => stochastic}/random_search.py (100%) rename python/{2_Stochastic_Algorithms => stochastic}/stochastic.py (100%) rename python/{2_Stochastic_Algorithms => stochastic}/stochastic_hill_climbing.py (100%) create mode 100644 python/stochastic/tests/__init__.py rename python/{2_Stochastic_Algorithms => stochastic/tests}/adaptive_random_search_tests.py (100%) rename python/{2_Stochastic_Algorithms => stochastic/tests}/random_search_tests.py (100%) rename python/{2_Stochastic_Algorithms => stochastic/tests}/stochastic_hill_climbing_tests.py (100%) rename python/{2_Stochastic_Algorithms => stochastic/tests}/stochastic_tests.py (100%) diff --git a/python/__init__.py b/python/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/python/requirements.txt b/python/requirements.txt new file mode 100644 index 00000000..28d8043c --- /dev/null +++ b/python/requirements.txt @@ -0,0 +1,5 @@ +coverage==4.0.3 +nose==1.3.7 +nosexcover==1.0.10 +python-coveralls==2.6.0 +PyYAML==3.11 diff --git a/python/stochastic/__init__.py b/python/stochastic/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/python/2_Stochastic_Algorithms/adaptive_random_search.py b/python/stochastic/adaptive_random_search.py similarity index 100% rename from python/2_Stochastic_Algorithms/adaptive_random_search.py rename to python/stochastic/adaptive_random_search.py diff --git a/python/2_Stochastic_Algorithms/guided_local_search.py b/python/stochastic/guided_local_search.py similarity index 100% rename from python/2_Stochastic_Algorithms/guided_local_search.py rename to python/stochastic/guided_local_search.py diff --git a/python/2_Stochastic_Algorithms/iterated_local_search.py b/python/stochastic/iterated_local_search.py similarity index 100% rename from python/2_Stochastic_Algorithms/iterated_local_search.py rename to python/stochastic/iterated_local_search.py diff --git a/python/2_Stochastic_Algorithms/random_search.py b/python/stochastic/random_search.py similarity index 100% rename from python/2_Stochastic_Algorithms/random_search.py rename to python/stochastic/random_search.py diff --git a/python/2_Stochastic_Algorithms/stochastic.py b/python/stochastic/stochastic.py similarity index 100% rename from python/2_Stochastic_Algorithms/stochastic.py rename to python/stochastic/stochastic.py diff --git a/python/2_Stochastic_Algorithms/stochastic_hill_climbing.py b/python/stochastic/stochastic_hill_climbing.py similarity index 100% rename from python/2_Stochastic_Algorithms/stochastic_hill_climbing.py rename to python/stochastic/stochastic_hill_climbing.py diff --git a/python/stochastic/tests/__init__.py b/python/stochastic/tests/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/python/2_Stochastic_Algorithms/adaptive_random_search_tests.py b/python/stochastic/tests/adaptive_random_search_tests.py similarity index 100% rename from python/2_Stochastic_Algorithms/adaptive_random_search_tests.py rename to python/stochastic/tests/adaptive_random_search_tests.py diff --git a/python/2_Stochastic_Algorithms/random_search_tests.py b/python/stochastic/tests/random_search_tests.py similarity index 100% rename from python/2_Stochastic_Algorithms/random_search_tests.py rename to python/stochastic/tests/random_search_tests.py diff --git a/python/2_Stochastic_Algorithms/stochastic_hill_climbing_tests.py b/python/stochastic/tests/stochastic_hill_climbing_tests.py similarity index 100% rename from python/2_Stochastic_Algorithms/stochastic_hill_climbing_tests.py rename to python/stochastic/tests/stochastic_hill_climbing_tests.py diff --git a/python/2_Stochastic_Algorithms/stochastic_tests.py b/python/stochastic/tests/stochastic_tests.py similarity index 100% rename from python/2_Stochastic_Algorithms/stochastic_tests.py rename to python/stochastic/tests/stochastic_tests.py