cosineDistance
expect fun Function.cosineDistance(expression1: Expression, expression2: Expression): Expression(source)
ENTERPRISE EDITION API
Creates a function that returns the cosine distance which one minus the cosine similarity between the two input vectors. The result is a floating-point number ranges from −1.0 to 1.0. The expression1 and expression2 must be arrays of numbers, and must be the same length.
Return
The cosine distance between two given input vectors.
Parameters
expression1
The expression evaluated to an arrays of numbers.
expression2
The expression evaluated to an arrays of numbers.
actual fun Function.cosineDistance(expression1: Expression, expression2: Expression): Expression(source)
actual fun Function.cosineDistance(expression1: Expression, expression2: Expression): Expression(source)