Skip to content
Snippets Groups Projects
Commit 9339e7aa authored by Santos Garcia Carlos's avatar Santos Garcia Carlos
Browse files

evaluation corrigée

parent a02fe225
No related branches found
No related tags found
No related merge requests found
...@@ -26,13 +26,13 @@ class Individu(): ...@@ -26,13 +26,13 @@ class Individu():
first_name = brin[0] first_name = brin[0]
last_name = brin[-1] last_name = brin[-1]
rot_computed = self.table.rot_table[last_name+first_name] #rot_computed = self.table.rot_table[last_name+first_name]
rot_traj = first_nucleotide - last_nucleotide #rot_traj = first_nucleotide - last_nucleotide
# print(rot_traj) # print(rot_traj)
# print(rot_computed) # print(rot_computed)
diff_angle = sum(abs(rot_computed - rot_traj)) #diff_angle = sum(abs(rot_computed - rot_traj))
self.score = 1/(distance + diff_angle) self.score = 1/(distance)
def mutation(self, proba = P1): def mutation(self, proba = P1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment