We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_cosine_distance implementation is incomplete (normalization is missing).
_cosine_distance
Can be fixed with these lines of code:
Eigen::MatrixXf NearNeighborDisMetric::_cosine_distance(const FEATURESS& x, const FEATURESS& y, bool data_is_normalized) { FEATURESS a = x; FEATURESS b = y; if (!data_is_normalized) { a.rowwise().normalize(); b.rowwise().normalize(); } MatrixXf res = 1. - (a*b.transpose()).array(); return res; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
_cosine_distance
implementation is incomplete (normalization is missing).Can be fixed with these lines of code:
The text was updated successfully, but these errors were encountered: