SeldonIO / alibi-detect

Algorithms for outlier, adversarial and drift detection
https://docs.seldon.io/projects/alibi-detect/en/stable/
Other
2.25k stars 225 forks source link

Rename interface methods for mapping between frontend and backend #833

Closed mauicv closed 1 year ago

mauicv commented 1 year ago

What is this:

FIxes #812. Renames _to_tensor and _to_numpy methods on the base Sklearn and PyTorch backend classes to _to_frontend_dtype and _to_backend_dtype. Also expands there docstrings.

codecov[bot] commented 1 year ago

Codecov Report

Merging #833 (d40d206) into master (8b2dcbb) will not change coverage. The diff coverage is 97.22%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833/graphs/tree.svg?width=650&height=150&src=pr&token=gwntCwhaGT&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO)](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO) ```diff @@ Coverage Diff @@ ## master #833 +/- ## ======================================= Coverage 81.86% 81.86% ======================================= Files 159 159 Lines 10317 10317 ======================================= Hits 8446 8446 Misses 1871 1871 ``` | [Impacted Files](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO) | Coverage Δ | | |---|---|---| | [alibi\_detect/od/\_pca.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19wY2EucHk=) | `94.87% <80.00%> (ø)` | | | [alibi\_detect/od/\_gmm.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19nbW0ucHk=) | `97.43% <100.00%> (ø)` | | | [alibi\_detect/od/\_knn.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19rbm4ucHk=) | `97.95% <100.00%> (ø)` | | | [alibi\_detect/od/\_lof.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19sb2YucHk=) | `97.95% <100.00%> (ø)` | | | [alibi\_detect/od/\_mahalanobis.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19tYWhhbGFub2Jpcy5weQ==) | `97.36% <100.00%> (ø)` | | | [alibi\_detect/od/\_svm.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL19zdm0ucHk=) | `97.50% <100.00%> (ø)` | | | [alibi\_detect/od/pytorch/base.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL3B5dG9yY2gvYmFzZS5weQ==) | `97.22% <100.00%> (ø)` | | | [alibi\_detect/od/pytorch/svm.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL3B5dG9yY2gvc3ZtLnB5) | `99.16% <100.00%> (ø)` | | | [alibi\_detect/od/sklearn/base.py](https://app.codecov.io/gh/SeldonIO/alibi-detect/pull/833?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=SeldonIO#diff-YWxpYmlfZGV0ZWN0L29kL3NrbGVhcm4vYmFzZS5weQ==) | `93.65% <100.00%> (ø)` | |