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
140c4d57
Commit
140c4d57
authored
5 years ago
by
Santos Garcia Carlos
Browse files
Options
Downloads
Patches
Plain Diff
Commentaires
parent
3b29da84
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
individu.py
+3
-1
3 additions, 1 deletion
individu.py
with
3 additions
and
1 deletion
individu.py
+
3
−
1
View file @
140c4d57
...
...
@@ -7,7 +7,7 @@ from random import random
P1
=
0.015
class
Individu
():
'''
Un individu est caractérisé par sa table de rotations (individu.table)
'''
def
__init__
(
self
,
table
):
lineList
=
[
line
.
rstrip
(
'
\n
'
)
for
line
in
open
(
"
plasmid_8k.fasta
"
)]
brin
=
''
.
join
(
lineList
[
1
:])
...
...
@@ -18,6 +18,7 @@ class Individu():
self
.
score
=
self
.
evaluate
()
def
evaluate
(
self
):
'''
Evalue le score d
'
un individu sur un nombre numb_ajout de points
'''
traj
=
Traj3D
()
numb_ajout
=
6
...
...
@@ -47,6 +48,7 @@ class Individu():
def
mutation
(
self
,
proba
=
P1
):
'''
Modifie des rotations dans la table des rotations en préservant les symétries
'''
table_rotations
=
self
.
table
.
rot_table
for
doublet
in
table_rotations
:
for
coord
in
range
(
3
):
...
...
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