Giter VIP home page Giter VIP logo

Comments (10)

SkafteNicki avatar SkafteNicki commented on May 19, 2024 3

@bhadreshpsavani please feel free to open a PR with what you got, then we can better help out :]

from torchmetrics.

bhadreshpsavani avatar bhadreshpsavani commented on May 19, 2024 1

Hi @SkafteNicki and @Borda,
Can I take this?

from torchmetrics.

Borda avatar Borda commented on May 19, 2024 1

sure, open a draft PR and we can help you there 🐰
to run tests locally, you can use make test which is running following command under the hood
https://github.com/PyTorchLightning/metrics/blob/fb0ee3ff0509fdb13bd07b6aac3e20c642bb5683/Makefile#L20

from torchmetrics.

github-actions avatar github-actions commented on May 19, 2024

Hi! thanks for your contribution!, great first issue!

from torchmetrics.

SkafteNicki avatar SkafteNicki commented on May 19, 2024

@bhadreshpsavani please feel free to do so :]
Ping me either here or on our slack channel if you need any help.

from torchmetrics.

justusschock avatar justusschock commented on May 19, 2024

@bhadreshpsavani for the metrics that ware not differentiable, please also wrap the forward and compute functions with torch.no_grad to reduce the memory footprint.

from torchmetrics.

Borda avatar Borda commented on May 19, 2024

@bhadreshpsavani how is it going, have you started on adding these tests?

from torchmetrics.

bhadreshpsavani avatar bhadreshpsavani commented on May 19, 2024

Hi @Borda,
I have made changes for two metrics. I was not very confident about the changes. Since I don't know how to run that test cases and check the changes. I am not very sure I did it the right way.

Shall I create a PR so someone can review it and suggest?

from torchmetrics.

bhadreshpsavani avatar bhadreshpsavani commented on May 19, 2024

I have made a pull request but a lot of tests are failing,
I try to test the changes using the below commands make test, python -m pytest torchmetrics tests -v --cov=torchmetrics before making changes but it was giving an error.

(metrics-env) D:\metrics>make test
FIND: Parameter format not correct
# clean all temp runs
process_begin: CreateProcess(NULL, # clean all temp runs, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:7: clean] Error 2

and

(metrics-env) D:\metrics>python -m pytest torchmetrics tests -v --cov=torchmetrics
ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
__main__.py: error: unrecognized arguments: --cov=torchmetrics
  inifile: D:\metrics\setup.cfg
  rootdir: D:\metrics

from torchmetrics.

bhadreshpsavani avatar bhadreshpsavani commented on May 19, 2024

Hi @SkafteNicki,
Is it possible that for few metrics can't have this property?
I was trying to implement this for cohen_kappa and ``avarage_precision` i wrote code but few test cases I wrote were failing. I could not figure out how to fix it.
Let me create PR for that so that you can review the changes.

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.