MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / dist

Function dist

unsupervised_class/evolution.py:25–26  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

23
24# distance between 2 DNA strands
25def dist(a, b):
26 return sum(i != j for i, j in zip(a, b))
27
28
29# generate offspring by modifying some characters in the code

Callers 3

find_analogiesFunction · 0.85
find_analogiesFunction · 0.85
evolution.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected