Selector
Selector copied to clipboard
New average similarity method
This PR should close (for now) the implementation of n-ary similarity methods.
Addressed problems
- Added support to the Instant Similarity (
isim)- Implemented support for Instant Similarity (isim) methods within the NSimilarity and SimilarityIndex classes.
- The previous method for calculating average similarity is now called Extended Similarity (
esim) and is supported for "backward compatibility?"
- Added support for
esimandisimto utilize a p-norm average similarity. - Added tests for the
isimmethod with the different similarity indexes and p-norm averages using reference data generated by Ramón's group code
Remaining things to do (future)
- We don't have a source of reference data for
esimwith p-norm averages different than 1. - Improve docstrings format
Notes: After this is merged, the Quickstart notebook (PR #186) can showcase the new flexibility of the methods.