MCPcopy Create free account
hub / github.com/davisking/dlib / dot

Function dot

python_examples/svm_struct.py:87–89  ·  view source on GitHub ↗

Compute the dot product between the two vectors a and b.

(a, b)

Source from the content-addressed store, hash-verified

85
86
87def dot(a, b):
88 """Compute the dot product between the two vectors a and b."""
89 return sum(i * j for i, j in zip(a, b))
90
91
92################################################################################

Callers 2

predict_labelFunction · 0.70
separation_oracleMethod · 0.70

Calls 1

sumFunction · 0.50

Tested by

no test coverage detected