MCPcopy Index your code
hub / github.com/clips/pattern / mutate

Method mutate

pattern/vector/__init__.py:2457–2460  ·  view source on GitHub ↗

Must be implemented in a subclass, returns a new candidate.

(self, candidate, d=0.1)

Source from the content-addressed store, hash-verified

2455 return None
2456
2457 def mutate(self, candidate, d=0.1):
2458 """ Must be implemented in a subclass, returns a new candidate.
2459 """
2460 return None or candidate
2461
2462 def update(self, top=0.7, crossover=0.5, mutation=0.1, d=0.9):
2463 """ Updates the population by selecting the top fittest candidates,

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected