pg.geno.CustomDecisionPoint#
Accessible via pg.geno.CustomDecisionPoint
.
- class CustomDecisionPoint(hyper_type=None, next_dna_fn=None, random_dna_fn=None, hints=None, location=, name=None)[source]#
Bases:
pg.geno.DecisionPoint
Represents a user-defined decision point.
Example:
decision_point = pg.geno.custom()
See also:
pg.geno.custom
.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.
sym_eq
(other)Overrides sym_eq to exclude non-serializable fields.
sym_jsonify
(**kwargs)Overrides sym_jsonify to exclude non-serializable fields.
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.
- property is_custom_decision_point: bool[source]#
Returns True if current node is a custom decision point.