-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
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
Add Hamming, Jensen-Shannon, KL-Divergence, Russell rao and Correlation distance metrics support #306
Add Hamming, Jensen-Shannon, KL-Divergence, Russell rao and Correlation distance metrics support #306
Conversation
…dy a multiplying factor so inferring 0s to avoid log is already in place
…eeded as we are multiplying with a 0 in case any of the inputs to log() is 0 so there is no resultant inf. this improves perf further now 3.7x compared to naive kernel version
@cjnolet Mahesh found that in some metrics there's a huge perf gain if we used the fast-math instrinsics. Thus, we were discussing about introducing "fast" versions of some of these metrics (eg: |
…ich only requires log (x), and post processing revert the log(x) back to x
@cjnolet ping for help with review. |
…'t match with sklearn results otherwise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I notice this is marked w/ the |
@cjnolet yes that is the proposed plan to have additional distance metrics for jensen-shannon & kl-divergence as |
Can one of the admins verify this patch? |
add to allowlist |
@teju85 can you rerun the tests? seems like the some CI error causing failure. |
rerun tests |
Ah I missed your question, @cjnolet . This was an oversight from me. This is not a breaking change. I've rectified it. |
@gpucibot merge |
…o distance metrics (#4155) -- This PR depends on RAFT PR - rapidsai/raft#306 -- Adds cpp & python interfaces for these distance metrics with pytest support for each of them. -- also remove redundant commented code in canberra distance metric Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #4155
…o distance metrics (rapidsai#4155) -- This PR depends on RAFT PR - rapidsai/raft#306 -- Adds cpp & python interfaces for these distance metrics with pytest support for each of them. -- also remove redundant commented code in canberra distance metric Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#4155
This PR introduces the following distances:
with unit tests for each of them.