MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / d

Function d

unsupervised_class/kmeans.py:15–17  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

13
14
15def d(u, v):
16 diff = u - v
17 return diff.dot(diff)
18
19
20def cost(X, R, M):

Callers 1

plot_k_meansFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected