pg.geno.custom¶
Accessible via pg.geno.custom
.
- custom(hyper_type=None, next_dna_fn=None, random_dna_fn=None, hints=None, location=, name=None)[source]¶
Returns a custom decision point.
It creates the genotype for subclasses of
pg.hyper.CustomHyper
.Example:
spec = pg.geno.custom('my_hyper', hints='some hints')
- Return type:
- Parameters:
hyper_type – An optional display type for the custom decision point.
next_dna_fn – An optional callable for computing the next DNA for current decision point.
random_dna_fn – An optional callable for computing a random DNA for current decision point.
hints – An optional hint object.
location – A
pg.KeyPath
object that indicates the location of the decision point.name – An optional global unique name for identifying this decision point.
- Returns:
A
pg.geno.CustomDecisionPoint
object.