pg.geno.Float¶
Accessible via pg.geno.Float
.
- class Float(min_value, max_value, scale=None, hints=None, location=, name=None)[source]¶
Bases:
pg.geno.DecisionPoint
Represents the genotype for a float-value genome.
Example:
# Create a float decision point within range [0.1, 1.0]. decision_point = pg.geno.floatv(0.1, 1.0)
See also:
pg.geno.floatv
.Attributes:
Returns all decision points in their declaration order.
Returns True if current node is a categorical choice.
Returns True if current node is a custom decision point.
Returns True if current node is numerical decision.
Returns True if current node is a subchoice of a multi-choice.
Returns the size of the search space.
Methods:
format
([compact, verbose, root_indent, show_id])Format this object.
validate
(dna)Validate whether a DNA value conforms to this spec.
- property decision_points: List[DecisionPoint][source]¶
Returns all decision points in their declaration order.
- format(compact=True, verbose=True, root_indent=0, show_id=True, **kwargs)[source]¶
Format this object.