Skip to content

Add better ways to work with similarity function #35

@cvigilv

Description

@cvigilv

Writing the examples I encountered some pain points regarding how we compute similarity.

Currently we only have a single entry point for this operation and it only receives 2
hypervectors as inputs. I think we could do something a little bit better in order to make this
operation be more smooth.

I have this implementation in my mini HDC package:

similarity(u::AbstractHV) = v -> similarity(u, v)
δ(u::AbstractHV) = similarity(u)

This allows to create a function to compare a hypervector via function call and can be used for
in conjunction to the .@ macro to compute one-vs-all, for example.

I will add this probable, but leaving this issue so I don't forget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions