Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
34 | 2 | 5 | 0.963 | Python |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 28 | 1 | Bio/GA/Crossover/Point.py |
2 | 34 | 1 | Bio/GA/Crossover/TwoPoint.py |
| ||||
"""Perform two-point crossovers between the genomes of two organisms. This module performs single-point crossover between two genomes. SinglePointCrossover: genome 1 -- A B C*D E F genome 2 -- a b c*d e f new genome 1 -- A B C d e f new genome 2 -- a b c D E F """ # standard modules from GeneralPoint import TwoCrossover class SinglePointCrossover(TwoCrossover): """Perform point crossover between genomes at some defined rate. This performs a crossover between two genomes at some defined frequency. Length of genome is preserved, as the crossover point is the same for either genome. """ def __init__(self,crossover_prob = .1): """Initialize to do crossovers at the specified probability. \t""" TwoCrossover.__init__(self,1,crossover_prob) |
| ||||
"""Perform two-point crossovers between the genomes of two organisms. This module performs two-point crossover between two genomes. There are two flavors: OnePointCrossover (Point) and TwoPointCrossover. TwoPointCrossover is the minimal crossover technique that facilitates diverse genome length. Do not use this if you need to maintain consistent genome length. TwoPointCrossover: genome 1 -- A B*C D E F genome 2 -- a b c*d e f new genome 1 -- A B d e f new genome 2 -- a b c C D E F """ # standard modules from GeneralPoint import TwoCrossover class TwoPointCrossover(TwoCrossover): """Perform two point crossover between genomes at some defined rate. This performs a crossover between two genomes at some defined frequency. The location of the points of crossover are chosen randomly if the crossover meets the probability to occur. """ def __init__(self,crossover_prob = .1): """Initialize to do crossovers at the specified probability. """ TwoCrossover.__init__(self,2,crossover_prob) |
| |||
[[#variable6016e200]] # standard modules from GeneralPoint import TwoCrossover class [[#variable6016e1c0]](TwoCrossover): [[#variable61884e20]] def __init__(self,crossover_prob = .1): [[#variable6016e180]] TwoCrossover.__init__(self, [[#variable6016e060]],crossover_prob) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6016e200]] | """Perform two-point crossovers between the genomes of two organisms. This module performs two-point crossover between two genomes. There are two flavors: OnePointCrossover (Point) and TwoPointCrossover. TwoPointCrossover is the minimal crossover technique that facilitates diverse genome length. Do not use this if you need to maintain consistent genome length. TwoPointCrossover: genome 1 -- A B*C D E F genome 2 -- a b c*d e f new genome 1 -- A B d e f new genome 2 -- a b c C D E F """ |
1 | 2 | [[#6016e200]] | """Perform two-point crossovers between the genomes of two organisms. This module performs single-point crossover between two genomes. SinglePointCrossover: genome 1 -- A B C*D E F genome 2 -- a b c*d e f new genome 1 -- A B C d e f new genome 2 -- a b c D E F """ |
2 | 1 | [[#6016e1c0]] | TwoPointCrossover |
2 | 2 | [[#6016e1c0]] | SinglePointCrossover |
3 | 1 | [[#61884e20]] | """Perform two point crossover between genomes at some defined rate. This performs a crossover between two genomes at some defined frequency. The location of the points of crossover are chosen randomly if the crossover meets the probability to occur. """ |
3 | 2 | [[#61884e20]] | """Perform point crossover between genomes at some defined rate. This performs a crossover between two genomes at some defined frequency. Length of genome is preserved, as the crossover point is the same for either genome. """ |
4 | 1 | [[#6016e180]] | """Initialize to do crossovers at the specified probability. """ |
4 | 2 | [[#6016e180]] | """Initialize to do crossovers at the specified probability. \t""" |
5 | 1 | [[#6016e060]] | 2 |
5 | 2 | [[#6016e060]] | 1 |