in reply to Re^3: Test::More fails...
in thread Test::More fails...
compare will only ever return 1 when the two vectors it is given are identical. In practice, this will almost certainly never happen. If the default model is used, the vectors are 1536 dimensions. For the tests, I have artificially created much smaller, deliberately identical vectors.
The return value of compare is the return value of cosine in Data::CosineSimilarity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Test::More fails...
by haukex (Archbishop) on May 30, 2023 at 13:40 UTC | |
by hippo (Archbishop) on May 30, 2023 at 13:49 UTC |