Commit 54d3d4ff by Pamela Osuna

inversed key

parent 7eb0aefa
...@@ -6,13 +6,13 @@ converter = {(e,r):[i] for (e,r),i in zip(product(B,B),range(4))} ...@@ -6,13 +6,13 @@ converter = {(e,r):[i] for (e,r),i in zip(product(B,B),range(4))}
def output_convert(e, r): def output_convert(e, r):
""" """
Encodes outputs as integers Encodes outputs as integers
Parameters Parameters
----------- -----------
e : 1 evolvable, 0 not evolvable e : 1 evolvable, 0 not evolvable
r : 1 robust, 0 not robust r : 1 robust, 0 not robust
Returns Returns
----------- -----------
the encoded output the encoded output
output meaning: output meaning:
...@@ -21,4 +21,4 @@ def output_convert(e, r): ...@@ -21,4 +21,4 @@ def output_convert(e, r):
2 : not evol. and rob. 2 : not evol. and rob.
3 : evol. and rob. 3 : evol. and rob.
""" """
return converter[r,e] return converter[e,r]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment