COSINE_SIMILARITY_NORM (Lakehouse v2)
Devolve a semelhança de cosseno entre duas matrizes normalizadas.
Sintaxe de Analyze
Seção intitulada “Sintaxe de Analyze”func.cosine_similarity_norm(<array1>, <array2>)Exemplos de Analyze
Seção intitulada “Exemplos de Analyze”func.cosine_similarity_norm([0.6, 0.8], [0.8, 0.6])
┌──────┐│ 0.96 │└──────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”COSINE_SIMILARITY_NORM(<array1>, <array2>)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT COSINE_SIMILARITY_NORM([0.6, 0.8], [0.8, 0.6]);
┌──────┐│ 0.96 │└──────┘