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

Method crossover

pattern/vector/__init__.py:2452–2455  ·  view source on GitHub ↗

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

(self, candidate1, candidate2, d=0.5)

Source from the content-addressed store, hash-verified

2450 return 1.0
2451
2452 def crossover(self, candidate1, candidate2, d=0.5):
2453 """ Must be implemented in a subclass, returns a new candidate.
2454 """
2455 return None
2456
2457 def mutate(self, candidate, d=0.1):
2458 """ Must be implemented in a subclass, returns a new candidate.

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected