Skip to content

Commit

Permalink
Library ready.
Browse files Browse the repository at this point in the history
  • Loading branch information
ukuleleplayer committed May 13, 2017
1 parent 540d214 commit b33f622
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ Use the same setup as HyperNEAT except for:

If one is trying to solve an experiment defined by the [OpenAI Gym](https://gym.openai.com/) it is even easier to experiment. In the `shared` module a file called `gym_runner` is able to do most of the work. Given the number of generations, the environment to run, a configuration file, and a substrate, the relevant runner will take care of everything regarding population, fitness function etc.

Please refer to the sample experiments included for further details on experimenting.
Please refer to the sample experiments included for further details on experimenting.

2 changes: 1 addition & 1 deletion pureples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pureples.shared as shared
import pureples.shared as shared
import pureples.hyperneat as hyperneat
import pureples.es_hyperneat as es_hyperneat

2 changes: 1 addition & 1 deletion pureples/es_hyperneat/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from pureples.es_hyperneat.es_hyperneat import ESNetwork, find_pattern
from pureples.es_hyperneat.es_hyperneat import ESNetwork, find_pattern
2 changes: 1 addition & 1 deletion pureples/es_hyperneat/es_hyperneat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import copy
import numpy as np
from pureples.hyperneat.hyperneat import query_cppn
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/mountain_car/config_cppn_mountain_car
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the CPPN regarding the mountain car experiment ---#
#--- parameters for the CPPN regarding the mountain car experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/mountain_car/config_neat_mountain_car
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the NEAT mountain car experiment ---#
#--- parameters for the NEAT mountain car experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/mountain_car/neat_mountain_car.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/mountain_car/run_all_mountain_car.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import matplotlib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import neat_mountain_car
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the CPPN regarding the single pole balancing experiment ---#
#--- parameters for the CPPN regarding the single pole balancing experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the NEAT single pole balancing experiment ---#
#--- parameters for the NEAT single pole balancing experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/pole_balancing/neat_pole_balancing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import logging
import cPickle as pickle
import gym
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import matplotlib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import neat_pole_balancing
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/config_cppn_xor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the CPPN related to the XOR experiment ---#
#--- parameters for the CPPN related to the XOR experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/config_neat_xor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--- parameters for the NEAT XOR experiment ---#
#--- parameters for the NEAT XOR experiment ---#

[NEAT]
fitness_criterion = max
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/es_hyperneat_xor_large.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import neat.nn
import cPickle as pickle
from pureples.shared.substrate import Substrate
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/es_hyperneat_xor_medium.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import neat.nn
import cPickle as pickle
from pureples.shared.substrate import Substrate
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/es_hyperneat_xor_small.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import neat.nn
import cPickle as pickle
from pureples.shared.substrate import Substrate
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/hyperneat_xor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import neat.nn
import cPickle as pickle
from pureples.shared.visualize import draw_net
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/neat_xor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import neat.nn
import cPickle as pickle
import sys
Expand Down
2 changes: 1 addition & 1 deletion pureples/experiments/xor/run_all_xor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import matplotlib
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import neat_xor
Expand Down
2 changes: 1 addition & 1 deletion pureples/hyperneat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from pureples.hyperneat.hyperneat import create_phenotype_network
from pureples.hyperneat.hyperneat import create_phenotype_network

2 changes: 1 addition & 1 deletion pureples/hyperneat/hyperneat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat


# Creates a recurrent network using a cppn and a substrate.
Expand Down
2 changes: 1 addition & 1 deletion pureples/shared/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pureples.shared.gym_runner import run_es, run_hyper, run_neat
from pureples.shared.gym_runner import run_es, run_hyper, run_neat
from pureples.shared.visualize import draw_net, draw_pattern, draw_es
from pureples.shared.substrate import Substrate

2 changes: 1 addition & 1 deletion pureples/shared/gym_runner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import neat
import neat
import numpy as np
from pureples.hyperneat.hyperneat import create_phenotype_network
from pureples.es_hyperneat.es_hyperneat import ESNetwork
Expand Down
1 change: 1 addition & 0 deletions pureples/shared/substrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ def __init__(self, input_coordinates, output_coordinates, hidden_coordinates=(),
self.hidden_coordinates = hidden_coordinates
self.output_coordinates = output_coordinates
self.res = res

2 changes: 1 addition & 1 deletion pureples/shared/test_cppn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cPickle as pickle
import cPickle as pickle
from pureples.es_hyperneat.es_hyperneat import find_pattern
from pureples.shared.visualize import draw_pattern

Expand Down
2 changes: 1 addition & 1 deletion pureples/shared/visualize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import graphviz
import graphviz
import matplotlib.pyplot as plt
import cPickle as pickle

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='pureples',
version='0.0',
author='simon, adrian',
author='adrian, simon',
author_email='[email protected]',
maintainer='simon, adrian',
maintainer_email='[email protected]',
Expand Down

0 comments on commit b33f622

Please sign in to comment.