I initially thought we could get rid of all the cosine distance logic, but it turns out that scikit-learn doesn't implement it. So that workaround stays. Basically, this is just a copy of BallTree, but with method="auto".
I've also deprecated BallTree, which will be removed in future versions. Then, we can also get rid of this code duplication.
Issue
162
Description of changes
I initially thought we could get rid of all the cosine distance logic, but it turns out that scikit-learn doesn't implement it. So that workaround stays. Basically, this is just a copy of
BallTree
, but withmethod="auto"
.I've also deprecated
BallTree
, which will be removed in future versions. Then, we can also get rid of this code duplication.Includes