Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EI Jeux Evolutionnaires
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Santos Garcia Carlos
EI Jeux Evolutionnaires
Commits
b3638e02
Commit
b3638e02
authored
5 years ago
by
Muller Sacha
Browse files
Options
Downloads
Patches
Plain Diff
retirer les print du fichier individu.py
parent
5fe4c4b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
individu.py
+5
-5
5 additions, 5 deletions
individu.py
with
5 additions
and
5 deletions
individu.py
+
5
−
5
View file @
b3638e02
...
...
@@ -26,8 +26,8 @@ class Individu():
rot_computed
=
self
.
table
.
Rot_Table
[
last_name
+
first_name
]
rot_traj
=
first_nucleotide
-
last_nucleotide
print
(
rot_traj
)
print
(
rot_computed
)
#
print(rot_traj)
#
print(rot_computed)
diff_angle
=
sum
(
abs
(
rot_computed
-
rot_traj
))
self
.
score
=
1
/
(
distance
+
diff_angle
)
...
...
@@ -39,10 +39,10 @@ class Individu():
for
coord
in
range
(
3
):
tir
=
random
()
if
tir
<
proba
:
print
(
"
mutation
"
,
doublet
,
coord
)
print
(
"
table
"
,
table_rotations
[
doublet
][
coord
])
#
print("mutation", doublet, coord)
#
print("table", table_rotations[doublet][coord])
table_rotations
[
doublet
][
coord
]
=
np
.
random
.
uniform
(
low
=
self
.
table
.
orta
()[
doublet
][
coord
]
-
self
.
table
.
orta
()[
doublet
][
coord
+
3
],
high
=
self
.
table
.
orta
()[
doublet
][
coord
]
+
self
.
table
.
orta
()[
doublet
][
coord
+
3
])
print
(
"
table
"
,
table_rotations
[
doublet
][
coord
])
#
print("table", table_rotations[doublet][coord])
# individu1 = Individu(RotTable())
# print(individu1.table.rot_table)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment