lightning/pytorch_lightning
Tadej Svetina fedc0d1360
Classification metrics overhaul: input formatting standardization (1/n) (#4837)
* Add stuff

* Change metrics documentation layout

* Change testing utils

* Replace len(*.shape) with *.ndim

* More descriptive error message for input formatting

* Replace movedim with permute

* Style changes in error messages

* More error message style improvements

* Fix typo in docs

* Add more descriptive variable names in utils

* Change internal var names

* Break down error checking for inputs into separate functions

* Remove the (N, ..., C) option in MD-MC

* Simplify select_topk

* Remove detach for inputs

* Fix typos

* Update pytorch_lightning/metrics/classification/utils.py

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* Update docs/source/metrics.rst

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* Minor error message changes

* Update pytorch_lightning/metrics/utils.py

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* Reuse case from validation in formatting

* Refactor code in _input_format_classification

* Small improvements

* PEP 8

* Update pytorch_lightning/metrics/classification/utils.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Update pytorch_lightning/metrics/classification/utils.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Update docs/source/metrics.rst

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Update pytorch_lightning/metrics/classification/utils.py

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Apply suggestions from code review

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Alphabetical reordering of regression metrics

* Change default value of top_k and add error checking

* Extract basic validation into separate function

* Update desciption of parameters in input formatting

* Apply suggestions from code review

Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>

* Check that probabilities in preds sum to 1 (for MC)

* Fix coverage

* Minor changes

* Fix edge case and simplify testing

Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: chaton <thomas@grid.ai>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2020-12-07 17:49:35 +01:00
..
accelerators Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
callbacks Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
cluster_environments Allow string plugins (#4888) 2020-12-01 20:30:49 +00:00
core Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
distributed notices (#4118) 2020-10-13 07:18:07 -04:00
loggers [Bug Fix] Allow logger to support indexing (#4595) 2020-12-05 21:00:31 +00:00
metrics Classification metrics overhaul: input formatting standardization (1/n) (#4837) 2020-12-07 17:49:35 +01:00
overrides Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
plugins Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
profiler update 2020-11-27 17:48:51 +00:00
trainer Simplify optimization Logic (#4984) 2020-12-07 12:55:49 +00:00
tuner Fix batch_arg_name bug (#4812) 2020-11-23 11:34:11 +05:30
utilities Auto convert to contiguous format for all_gather (#4907) 2020-12-05 15:49:45 +01:00
__init__.py ci typo in cofig (#4954) 2020-12-02 22:49:47 +01:00
py.typed make PyTorch Lightning PEP 561 Compliant (#3187) 2020-09-09 13:37:03 -04:00
setup_tools.py Added the function for downloading the badges locally and replace the url with downlaod path (#4250) 2020-12-01 22:58:32 +01:00