RocAuc Pairwise Loss/Objective
This is gpu implementation of rocauc pairwise objectives for gradient boosting:
$$L = \sum_{i, j} (\hat P_{ij}\log{P_{ij}} + (1 - \hat P_{ij})\log{(1 - P_{ij})}) |\Delta_{AUC_{ij}}|$$
This package could be used to solve classification problems with relative small numbers of objects, where you need to improve rocauc score.
Also there is cpu multithread implementation of this losses.
Losses that are implemented in this package
- Sigmoid pairwise loss. (GPU or CPU implementations) $$L = \sum_{i, j}\hat P_{ij}\log{P_{ij}} + (1 - \hat P_{ij})\log{(1 - P_{ij})}$$
- RocAuc Pairwise Loss with approximate auc computation. (GPU or CPU implementations) $$L = \sum_{i, j} (\hat P_{ij}\log{P_{ij}} + (1 - \hat P_{ij})\log{(1 - P_{ij})})|\Delta_{AUC^{approx}_{ij}}|$$
- RocAuc Pairwise Loss Exact (GPU or CPU implementations) with exact auc computation. This could be more compute intensive, but this loss might be helpfull for first boosting rounds (if you are using gradient boosting) $$L = \sum_{i, j} (\hat P_{ij}\log{P_{ij}} + (1 - \hat P_{ij})\log{(1 - P_{ij})})|\Delta_{AUC^{exact}_{ij}}|$$
- RocAuc Pairwise Loss Exact Smoothened (GPU or CPU implementations). This loss allows you to incorporate information about equal instances. Because $\Delta_{AUC_{ij}} = 0$ if $y_i = y_j$. So we just add small $\epsilon > 0$ in equation. $$L = \sum_{i, j} (\hat P_{ij}\log{P_{ij}} + (1 - \hat P_{ij})\log{(1 - P_{ij})})(\epsilon + |\Delta_{AUC^{exact}_{ij}}|)$$
Performance
Intel Core i5 10600KF (12 threads), Nvidia RTX 3060
For more information
- You can see GitHub repository.
- Or you can use example notebook on Google Colab
- Or you can use example notebook on Kaggle
References
[1] Sean J. Welleck, Efficient AUC Optimization for Information Ranking Applications, IBM USA (2016)
[2] Burges, C.J.: From ranknet to lambdarank to lambdamart: An overview. Learning (2010)
[3] Calders, T., Jaroszewicz, S.: Efficient auc optimization for classification. Knowledge
Discovery in Databases. (2007)
Metadata
Release files for roc-auc-pairwise 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| roc_auc_pairwise-0.0.1.tar.gz | 24.8 kB | Without provenance | Details for roc_auc_pairwise-0.0.1.tar.gz |
Built distributions (wheels)
Total release size: 9.8 MB
Release files / roc_auc_pairwise-0.0.1.tar.gz
| Download URL | roc_auc_pairwise-0.0.1.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38a9e38a746d88d9aa94d73ef9000d12fd818d78d4707ad39b2c479dce074cae
|
|
BLAKE2b-256 checksum How to use checksums |
16fb17a297837d5a1dd2bca79993c7c70dc9394a0ec55b22f7399a3617d3b382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / roc_auc_pairwise-0.0.1-cp311-cp311-manylinux_2_24_x86_64.whl
| Download URL | roc_auc_pairwise-0.0.1-cp311-cp311-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 |
|
SHA-256 checksum How to use checksums |
1e26f25d2cd14166cdd24c267a8344e4b2e75dcaa446dd09273c640a33765790
|
|
BLAKE2b-256 checksum How to use checksums |
57edbcb3c6701871fc2ffa65dcf62436529177548692a3a108225d57d57465a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / roc_auc_pairwise-0.0.1-cp310-cp310-manylinux_2_24_x86_64.whl
| Download URL | roc_auc_pairwise-0.0.1-cp310-cp310-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 |
|
SHA-256 checksum How to use checksums |
19bf7f777e6d5cbe4a24ccb913be4f708874d30076750cb076206111ad45947b
|
|
BLAKE2b-256 checksum How to use checksums |
b9f0631054976d4576b832406f6a08a4181ded1ca79b9da0bf777f72afa37cdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / roc_auc_pairwise-0.0.1-cp39-cp39-manylinux_2_24_x86_64.whl
| Download URL | roc_auc_pairwise-0.0.1-cp39-cp39-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 Linux glibc 2.24+ x86-64 |
|
SHA-256 checksum How to use checksums |
e33eec0b150a83a36291e4fb86e6a06ac2aa84c91e8884b09ec9cbca75faf967
|
|
BLAKE2b-256 checksum How to use checksums |
1c2774c423f5db351b8ef3b0ccfccf1f0c9710d68855bf0ae8b2e61a61887d11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / roc_auc_pairwise-0.0.1-cp38-cp38-manylinux_2_24_x86_64.whl
| Download URL | roc_auc_pairwise-0.0.1-cp38-cp38-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.8 Linux glibc 2.24+ x86-64 |
|
SHA-256 checksum How to use checksums |
d928354b79de9ea8cb4f45b51a2c94ad8fa7356efcd2432745df18a738a8a2f8
|
|
BLAKE2b-256 checksum How to use checksums |
ff54cd4665557f8cd8d0af31ecfc43b013a5b2780a85b33e505fa7eb2ffa7597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / roc_auc_pairwise-0.0.1-cp37-cp37m-manylinux_2_24_x86_64.whl
| Download URL | roc_auc_pairwise-0.0.1-cp37-cp37m-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 2.9 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.24+ x86-64 |
|
SHA-256 checksum How to use checksums |
e7146324bb8c168ee8042de6b7621b8a1369164ea9cb55d0ba892caf72b701b1
|
|
BLAKE2b-256 checksum How to use checksums |
880365a54eaefca01bfdcede016091fbf6978edeefca34af2c0ed1f7f7fb819b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for roc-auc-pairwise 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.