Skip to content

Probable error in cosine similarity #11

@gyrdym

Description

@gyrdym

return 1.0 - distance;

Hello,

Being an author of ml_linalg library, I found an error here.

In fact, 1-* is already considered in Vector.distanceTo:

https://github.com/gyrdym/ml_linalg/blob/027ddfab120b1e2d0c4d6b676c31e62615ce2374/lib/src/vector/float32x4_vector.dart#L521

P.S. Your library is awesome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions