saealib.PostAskEvent#
- class saealib.PostAskEvent(ctx, candidates=None)[ソース]#
ベースクラス:
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.- パラメータ:
ctx (_EventContext)
candidates (ndarray | None)
Methods
Method Details
- PostAskEvent.__init__(ctx, candidates=None)#
- パラメータ:
ctx (_EventContext)
candidates (ndarray | None)
- 戻り値の型:
None