Comments (10)
@bhadreshpsavani please feel free to open a PR with what you got, then we can better help out :]
from torchmetrics.
Hi @SkafteNicki and @Borda,
Can I take this?
from torchmetrics.
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.
Hi! thanks for your contribution!, great first issue!
from torchmetrics.
@bhadreshpsavani please feel free to do so :]
Ping me either here or on our slack channel if you need any help.
from torchmetrics.
@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.
@bhadreshpsavani how is it going, have you started on adding these tests?
from torchmetrics.
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.
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.
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)
- RetrievalNormalizedDCG doesn't change with different top_k values HOT 2
- BootStrapper.update/forward don't process kwargs HOT 1
- List Metric synchronization fails in corner case HOT 1
- Contribution: Add new audio/speech metrics for generative audio HOT 4
- ClasswiseWrapper and JaccardIndex confmat attribute error HOT 2
- MulticlassAveragePrecision crashes on .compute() if empty HOT 2
- Metric not moved to device and invalids the cpu-gpu offloading when combining with DeepSpeed HOT 1
- [Bug] No backend type associated with device type cpu HOT 1
- Metrics not being logged properly on remote GPU HOT 4
- Retrieval Metrics GPU Memory Leak HOT 1
- Specificity if TN + FN = 0 HOT 1
- Building the docs HOT 2
- Discrepancy in optimal threshold calculation between sklearn and torchmetrics ROC implementations HOT 2
- Mean Average Detection ignores `warn_on_many_detections` set to False HOT 1
- `list` states leak (`Tensor`) memory HOT 1
- Behaviors of AUROC and Average Precision are inconsistent when all labels are equal HOT 4
- The default value of `compute_with_cache` should be `True` . HOT 2
- Bug in ERGAS HOT 1
- Ordinal classification metrics HOT 1
- Binary Classification Expected Calibration Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torchmetrics.