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

Function d

unsupervised_class/kmeans_visualize.py:14–16  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

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

Callers 2

costFunction · 0.70
plot_k_meansFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected