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

Function d

unsupervised_class/books.py:83–85  ·  view source on GitHub ↗
(u, v)

Source from the content-addressed store, hash-verified

81 i += 1
82
83def d(u, v):
84 diff = u - v
85 return diff.dot(diff)
86
87def cost(X, R, M):
88 cost = 0

Callers 1

plot_k_meansFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected