Граф коммитов

234 Коммитов

Автор SHA1 Сообщение Дата
quancs d354b7e30d
fix mistakes in doc (#521) 2021-09-13 13:33:17 +00:00
deepsource-autofix[bot] 6a842eb462
Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#514)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2021-09-10 09:11:23 +00:00
Nicki Skafte 3a4ff87bdf
Fix dtype issues (#493)
* remove dtype
* yaml testing
* fix to and tests
* chlog

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-07 08:48:25 +00:00
Nicki Skafte f96c71742e
Adds average argument to AveragePrecision metric (#477)
* changes

* changelog

* fix

* add docs

* init files

* revert

* convert to float

* fix docstring

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-09-06 20:04:16 +00:00
karthikrangasai 043714e24f
Add Tweedie Deviance Score Metric. (#499)
* Add Tweedie Deviance Score Metric.

* Failing mypy and import errors.

* - score

* tweedie_

* docs

* Update docs references.

* Changes from review.

* Changes from review.

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-06 17:52:23 +00:00
Nicki Skafte e38cb704ec
Fix f1 score for macro and ignore index (#495)
* fix
* add testing

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-09-03 14:16:14 +02:00
Jirka Borovec 023e50758b
fix typing tqdm (#491) 2021-09-02 12:55:30 +00:00
Daniel Stancl 7b093813e2
Implement own BERT score (#473)
* Start adding own BERTScore implementation
* Prepare the basic backbone for own BERTScore
* Make working BERTScore with all_layers=True + init bert_score in torchmetrics
* Fix cuda device placing
* Use IDF only if asked
* Add data collators
* Remove old parts of code
* Fix IDF rescaling and add new tests + fix type
* Add new tests for IDF
* Add explicit dtypes when used torch.cat to make this work with older PT versions
* Adjust code to work with the DDP plus some changes
* Add a support for the DDP mode and add the corresponding test
* Add a suport for verbose using tqdm loader
* Fix a bug with tokenizer and add hash_code
* Fix transformers import
* Add support for the user's own model
* Add the corresponding example
* Fix error raised by default tokenizer
* Add support for the rescale with baseline
* Clean some code + add some docstirngs
* Run bert-ddp tests only if torch.distributed.is_available()
* Use smaller model, 'albert-base-v2', for testing because of OOM issues
* Set join=False for mp_spawn in the ddp_test

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-30 10:44:58 +02:00
karthikrangasai e6ad813867
Add `TextTester` class and update tests for current text metrics (#450)
* Added TextTester class
* Updating TextTester class with small naming changes
* Update TextTester with input processing, appropriate concatenations.
* Updated tests for BLEU Score based on TextTester.
* Updated WER metric to use the TextTester class.
* Updated tests for ROUGEScore based on TestTester.

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-27 14:31:57 +02:00
Yasser Souri 313c8686d1
reuse `_input_squeeze` (#481)
* reuse `_input_squeeze`

_input_format_classification`

* _hinge_update
2021-08-26 11:39:41 +00:00
Nicki Skafte b10dba42d9
Device and dtype properties (#462)
* add gpu testing
* change super
* move to metric + simplify
* fix bert
* update docs
* add typing
* changelog

* Apply suggestions from code review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-26 10:17:40 +02:00
Nicki Skafte 94a158c267
Change semantic ordering of kernel_size parameter in SSIM (#474)
* implem

* changelog

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-25 12:41:18 +00:00
Nishant Prabhu 03a8520e4c
Fixed tensor copy to remove UserWarning (#476)
Co-authored-by: Nishant Prabhu <nishant.p@perfios.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-24 12:16:00 +00:00
Justus Schock 3257c606ed
fixes metric hashing (#478)
* fixes metric hashing

* Update torchmetrics/metric.py

* Apply suggestions from code review

* chlog

* fix test

* fix decorator

* fix decorator

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2021-08-24 13:31:11 +02:00
kingyiusuen 689b2189c6
Remove dependency on jiwer for WER (#446)
* Remove dependency on jiwer for WER

* Add deprecation warning for concatenate_texts and add documnetation

* Use jiwer as reference in tests

* Apply suggestions from review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: SkafteNicki <skaftenicki@gmail.com>
2021-08-18 10:07:20 +00:00
Nicki Skafte db281f7188
add LPIPS (#431)
* grouping in Chlog

* implemention

* init files

* requirements

* change to optional testing

* update

* working test

* docs

* Update tests/image/test_lpips.py

* fix suggestions

* fix

* lower cpu load

* fix

* fix docs

* fix docs

* skip testing

* add seed

* fix

* diable scripting

* pep8

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-18 08:00:12 +00:00
Nicki Skafte 00f0256db3
Fix _sync_dist for compositional metrics (#454)
* fix+test

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-08-17 10:55:57 +00:00
Daniel Stancl a2712ebc98
Add `torchmetrics`' own implementation of Rouge score metrics (#443)
* Make Rouge-N working
* Add RougeL score calculation
* Add some docs + enable using Porter stemmer
* Enable RougeLSum calculation
* Add a few references and clean some parts
* Clean some minor stuff
* Return decimal_places argument to ROUGEScore and prepare depreciation warning
* Use 0 in (x,y) instead of x == 0 or y == 0
* Enable _rouge_score_update method takes List of sentence_results
* Replace dangerous default dict() values
* Replace _RougeScore class with dict
* Update error messages

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-17 10:21:15 +00:00
Alexander Senov 1171a1f125
Add float target support to class & functional NDCG (#437)
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-17 09:40:07 +02:00
Nicki Skafte 484477a24a
Fix ranking in spearman metric (#448)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-16 12:26:09 +02:00
Nicki Skafte 18d500c6bf
New changelog section (#441)
* Apply suggestions from code review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-08-15 11:37:22 +02:00
Jirka caf7b0bc46 release v0.5.0 2021-08-10 10:54:47 +02:00
Nicki Skafte 292233c3da
Reference, fix readme and add [all] install option (#435)
* grouping in Chlog

* update readme

* rc0

Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-09 11:29:37 +00:00
ananthsub 05faaf64db
Use __jit_ignored_properties__ instead of ignored_attributes for is_differentiable (#434) 2021-08-09 09:46:14 +02:00
Gagan Bhatia 25e261add4
Adding BERTScore metric (#424)
* Adding BertScore metric

* Improvements

* Update CHANGELOG.md

* Final fixes

* Apply suggestions from code review

* Docstring updates

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2021-08-08 10:34:09 +00:00
Pranjal Gulati 525642df8c
Docstrings for some functions in classification metrics (#428)
* Added docstrings for some functions

* Added docstrings for some more functions

* Fix flake8

* Fixed doctest fails

* Minor changes

* More minor changes

* Added some doctests

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-08-06 13:51:26 +02:00
Raj Singh cd34c84e97
metric tracker (#238)
* added initial code / definition for timeseries class

* added base essential methods, some implementation

* add proper typing, import

* move typing imports to top of file

* add implementation for best metric

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-04 10:00:52 +00:00
Nicki Skafte b487ac3991
Move checking in r2 for number of samples to compute (#426)
* fix

* changelog
2021-08-04 11:26:07 +02:00
Tony ad9845b815
Fix latex subscripts in R2Score docstrings (#422)
* Fix latex subscripts in docstring

* Fix docstring in functional/r2.py

Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-04 08:01:57 +00:00
Aki Nitta d05baa5a58
Add __all__ to __init__.py files (#425)
* Add __all__ to torchmetrics/__init__.py

* Add __all__ to torchmetrics/functional/__init__.py

* Add functional module to __all__

* Fix __init__

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-04 09:21:28 +02:00
Nicki Skafte 5a2388ccaa
Use argmax when topk=1 (#419)
* argmax for k=1
* changelog

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-03 12:28:54 +00:00
Jirka 21fe0ca7e1 docs: line 120 2021-08-03 12:50:18 +02:00
Jirka Borovec 219af0e42c
CI: precommit - docformatter (#408)
* add precommit - docformatter
* centralized links

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-03 10:21:12 +00:00
Edward Williams 2aaf27fb50
Implementation of calibration error metrics (#394)
* basic ECE functional + class metric working

* max calibration error and multidim-multiclass

* comb metrics, working functional l2, class broken

* removed debias term, ddp still broken

* updated docs

* fixed part of ddp, added changelog

* fixed ddp, still need to fix input unit tests

* removing sklearn_calibration

* more docstring fixes

* fixed tests for invalid inputs and added regex

* added test for non-int val bins

* removed doctest from calibration_error

* flake8/typing cleanup

* fix docs

* Apply suggestions from code review

* fix order

* flake8 + rendering

* fix styling

* Apply suggestions from code review

* Update torchmetrics/classification/calibration_error.py

* Apply suggestions from code review

* :

* ...

* fixed class variable issue

* added docstrings

* more flake8 fixes

* removed duplicate reference

* Apply suggestions from code review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-03 08:07:52 +00:00
Vatsalya Chaubey 79cb5e2f17
Fix metrics in macro average (#303)
* fix weights for nonexisting classes

* fix division by zero

* part fix

* add test case

* Apply suggestions from code review

* fix

* changelog

* please fix

* dist_sync not working

* trying to fix

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: SkafteNicki <skaftenicki@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-02 16:29:20 +00:00
Jirka Borovec d8b89e0fd8
yapf -> black (#406)
* yapf >> black
* fmt randn

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-02 17:31:11 +02:00
Nicki Skafte 4fd18b363a
Move forward cache and computed to device (#413)
* move to device

* changelog

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-08-02 13:37:42 +00:00
Pranjal Gulati d5aa720c61
Add docstrings for some functions in image, retrieval, text metrics (#415)
* Add docstrings for some functions in image, retrieval, text metrics

* Minor change

* Apply suggestions from code review

Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-08-02 12:56:20 +00:00
CSautier c9d36b2fa2
fix ignore_index in the computation of IoU (#328)
* fix ignore_index

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix ignore_index in iou

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* changelog

Co-authored-by: CSautier <corentin.sautier@valeo.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
2021-07-29 17:05:13 +00:00
Nicki Skafte 85ebc3b5fb
Add None as reduction option in CosineSimilarity (#400)
* fix

* Apply suggestions from code review

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-07-29 16:02:26 +00:00
quancs 250fffe651
Add PIT for audio metrics (#384)
* finish functional version
* change eval_func to str type
* remove return_best_perm
* fix pep8
* fix mypy
* add scipy
* simplyfied
* add test_consistency_of_two_implementations
* use _SCIPY_AVAILABLE
* add docstring
* to TIME
* use self.run_functional_metric_test
* add more description
* check ValueError
* fix imports
* Apply suggestions from code review

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2021-07-29 16:41:00 +02:00
karthikrangasai bb083f24f3
add Rouge score (#399)
* Adding new metric ROUGE Metric for text

* Added tests for the ROUGE metric

* Updated docs and imports, added types

* Apply suggestions from code review

* Applied changes suggested in code review

* Updated text dependencies and CHANGELOG

* Fix typing issues

* Updated docs dependencies

* pkg

* pkg

* set jiwer

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Simplified the implementation for batches and added more tests.

* Updated docs requirements and removed unused imports.

* Fix typing, rigorously check rouge_keys, add tests for rouge_keys error, update doc strings

* Remove unused imports

* Apply suggestions from code review

* Fixed typing and added docstrings for update and compute method

* Changes based on review

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-07-29 14:07:30 +02:00
Paul Grundmann b1062c9cf1
fix nDCG can not be called with negative relevance targets (#378)
- Test nDCG with negative relevance targets
* Fix: Check for non binary values for retrieval targets
- Use the scikit-learn implementation of nDCG
- Removed the test for non binary targets in test_ndcg.py and replaced the default parameters in the error test with a custom one that does not check for binary targets
- set the _input_retrieval_scores_non_binary_target low to -1 to reduce the test failure rate
* Fix removed unused imports in ndcg.py
* more stable tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: SkafteNicki <skaftenicki@gmail.com>
2021-07-28 23:50:55 +00:00
Nicki Skafte e00e3ab268
Fix OOM in pearson metric (#380)
* fix tests

* fix merge

* fix flake8

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2021-07-28 18:07:03 +02:00
Pranjal Gulati 71518333d4
Added docstrings for protected functions in regression metrics (#407)
* Added docstrings for protected functions in regression metrics
* Fixed flake8 issues
* Apply suggestions from code review
* Updated r2.py with better variable names
* Added docstring for r2.py/_r2_score_compute

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-07-28 14:01:23 +00:00
Jirka bff85d1996 set version v0.5dev 2021-07-28 11:55:52 +02:00
Jirka c958c7a9ab CI: yesqa 2021-07-27 00:36:15 +02:00
Jirka Borovec c334785b50
CI: pre-commit pyupgrade (#405)
* Update .pre-commit-config.yaml

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-07-26 15:33:08 +02:00
Artur Jaroszewicz f42256dd00
Weighted AUROC to omit empty classes (#376)
* Skipping empty classes in weighted auroc.py

added logic to omit empty classes with weighted AUROC, as they should have 0 weight anyway

* formatting

* Added test to test_auroc.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Removed comment, reformatted prediction matrix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fmt

* debug -- fixing binary case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updated tests

Now checks for ValueError and UserWarning

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* updated changelog

* debug

* final bug

* Update auroc.py

* removed f-string

* Docstring; removed f-string

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-07-26 07:40:32 +00:00
Gagan Bhatia 397a089b8b
Adding WER metric (#383)
* Update functional.rst

* Update modules.rst

* Update test.txt

* Create text.txt

* Update setup.py

* Update __init__.py

* Update __init__.py

* Update functional.rst

* Create __init__.py

* Create wer.py

* Create __init__.py

* Create wer.py

* Create text_wer.py

* Create __init__.py

* Create test_wer.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update wer.py

* Requested changes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update wer.py

* Update test_wer.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update wer.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update torchmetrics/functional/text/wer.py

Co-authored-by: Sean Naren <sean@grid.ai>

* Update torchmetrics/text/wer.py

Co-authored-by: Sean Naren <sean@grid.ai>

* Fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* test updates

* Better explanation for tests, skip if JIWER not available

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Combine functionality to rely on functional wer

* Cleanup docs

* Add indent

* Add doc

* Add spaces

* Add space

* Apply suggestions from code review

* Update torchmetrics/__init__.py

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

* Update torchmetrics/functional/text/wer.py

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

* Update torchmetrics/functional/text/wer.py

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

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Adding extra arguments to metrics

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update torchmetrics/functional/text/wer.py

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

* Cleanups

* Update torchmetrics/text/wer.py

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

* Update torchmetrics/functional/text/wer.py

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

* Update torchmetrics/text/wer.py

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

* Update torchmetrics/text/wer.py

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

* Update CHANGELOG.md

* Apply suggestions from code review

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* flake8

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Sean Naren <sean@grid.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2021-07-24 21:06:19 +00:00