Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
25
def
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_analogies
Function · 0.85
find_analogies
Function · 0.85
evolution.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected