Navigation :
Envision Tutorials
Envision Explanation
Envision How-To Guides
Lokad Platform
Envision Reference
- Glossary
- Platform overview
- List of icons
-
_
-
A-B-C
-
D-E-F
-- dash
-- dashUrl
-- date
-- Date & time format
-- Day
-- dayNum
-- def
-- default
-- delete
-- desc
-- dirac
-- diracz
-- dispersion
-- distinct
-- distinctapprox
-- dot
-- downloadUrl
-- each
-- else
-- embedding
-- embzero
-- emptySet
-- encoding
-- endsWith
-- entropy
-- enum
-- escape
-- escapelike
-- exp
-- expect
-- exponential
-- export
-- expsmooth
-- extend.billOfMaterials
-- extend.billOfMaterialsSteps
-- extend.range
-- extend.ranvar
-- extend.split
-- fail
-- false
-- field
-- fieldCount
-- fieldr
-- fifo
-- file
-- Files
-- fileUrl
-- fillrate
-- first
-- flag
-- flags
-- flagset
-- floor
-- foldAdd
-- folderUrl
-- for
-- forex
-- form
-- format
-- frame
-- function calls
-
G-H-I
-
J-K-L
-
M-N-O
-
P-Q-R
-
S-T-U
-
V-W-X
-
Y-Z
Envision Gallery
Envision Specifications
Envision Language
Legacy
dot
dot, function
def autodiff pure dot(x: embedding, y: embedding): number
Returns the dot product of the embeddings x and y.
x: the first embedding.
y: the second embedding.
Example
table T = with
[| as Group |]
[| "A" |]
[| "B" |]
[| "B" |]
T.E = embzero()
show table "Embedding dot product" with
T.Group
dot(sum(T.E) default embzero(), embzero()) as "Dot"
group by T.Group
This outputs the following table:
Group
Dot
A
0.5103008
B
0.7654513
dot is available inside autodiff blocks.
See also