Compare commits
1
Commits
8e88115b1f
...
b5abe43675
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5abe43675 |
@@ -45,7 +45,10 @@ namespace xAiService.Helpers
|
||||
/// <param name="a"></param>
|
||||
/// <param name="b"></param>
|
||||
/// <returns></returns>
|
||||
public static float CosineSimilarity(float[] a, float[] b)
|
||||
public static float CosineSimilarity(
|
||||
float[] a,
|
||||
float[] b
|
||||
)
|
||||
{
|
||||
//
|
||||
if (a.IsNull() || b.IsNull())
|
||||
|
||||
Reference in New Issue
Block a user