GithubHelp home page GithubHelp logo

Add `KLDivergence` about torchmetrics HOT 8 CLOSED

lightning-ai avatar lightning-ai commented on June 21, 2024
Add `KLDivergence`

from torchmetrics.

Comments (8)

SkafteNicki avatar SkafteNicki commented on June 21, 2024 1

Fine by me adding it to classification.
You can use http://scipy.github.io/devdocs/generated/scipy.stats.entropy.html function. It calculates the KL-divergence if two distributions are given.

from torchmetrics.

hassiahk avatar hassiahk commented on June 21, 2024

Hello @SkafteNicki, can I start working on this?

from torchmetrics.

SkafteNicki avatar SkafteNicki commented on June 21, 2024

Yes @hassiahk, I will assign you to this issue, thank you for wanting to contribute :]
Please remember to read our contribution guidelines: https://torchmetrics.readthedocs.io/en/stable/generated/CONTRIBUTING.html and this page https://torchmetrics.readthedocs.io/en/stable/pages/implement.html#contributing-your-metric-to-torchmetrics

from torchmetrics.

hassiahk avatar hassiahk commented on June 21, 2024

Sure, will take a look at them. :) Thanks @SkafteNicki

from torchmetrics.

hassiahk avatar hassiahk commented on June 21, 2024

Hi @SkafteNicki,

I have seen people using this metric for regression tasks but I will be adding this to classification because we deal with probabilities and their distributions. Will that be fine?

And how do we test this metric since sklearn.metrics does not offer this metric?

from torchmetrics.

SkafteNicki avatar SkafteNicki commented on June 21, 2024

@hassiahk how is it going here? :]

from torchmetrics.

hassiahk avatar hassiahk commented on June 21, 2024

@SkafteNicki, been busy with some other work, I will create a draft PR for this, this weekend. Thanks!

from torchmetrics.

stale avatar stale commented on June 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from torchmetrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.