saealib.PostAskEvent#
- class saealib.PostAskEvent(ctx, candidates=None)[source]#
Bases:
EventFired after the full ask step (post crossover and mutation).
candidatesis exposed for observation only; reassigning it does not change the pipeline’s output. Whether an in-place edit is picked up depends on the algorithm: some (e.g.PSO) dispatch this event after the candidates have already been copied into the offspring population, so even in-place changes have no effect. Do not rely on either form of mutation here; to actually alter ask output, usewith_post(fn)on the relevantCrossover/Mutationinstance instead.- Parameters:
ctx (_EventContext)
candidates (ndarray | None)
Methods
Method Details
- PostAskEvent.__init__(ctx, candidates=None)#
- Parameters:
ctx (_EventContext)
candidates (ndarray | None)
- Return type:
None