OASIS
OASIS is a tool for evaluating binary classifiers when ground truth class labels are not immediately available, but can be obtained at some cost (e.g. by asking humans). The tool takes an unlabelled test set as input and intelligently selects items to label so as to provide a precise estimate of the classifier’s performance, whilst minimising the amount of labelling required. The underlying strategy for selecting the items to label is based on a technique called adaptive importance sampling, which is optimised for the classifier performance measure of interest. Currently, OASIS supports estimation of the weighted F-measure, which includes the F1-score, precision and recall.
Important links
Documentation: https://ngmarchant.github.io/oasis
Source: https://www.github.com/ngmarchant/oasis
Technical paper: https://arxiv.org/pdf/1703.00617.pdf
Example
See the Jupyter notebook under docs/tutorial/tutorial.ipynb:
>>> import oasis
>>> data = oasis.Data()
>>> data.read_h5('Amazon-GoogleProducts-test.h5')
>>> def oracle(idx):
>>> return data.labels[idx]
>>> smplr = oasis.OASISSampler(alpha, data.preds, data.scores, oracle)
>>> smplr.sample_distinct(5000) #: query labels for 5000 distinct items
>>> print("Current estimate is {}.".format(smplr.estimate_[smplr.t_ - 1]))
License and disclaimer
The code is released under the MIT license. Please see the LICENSE file for details.
Metadata
Release files for oasis 0.1.3
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 |
|---|---|---|---|---|
| oasis-0.1.3.tar.gz | 16.6 MB | Without provenance | Details for oasis-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oasis-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for oasis-0.1.3-py2.py3-none-any.whl |
Total release size: 16.6 MB
Release files / oasis-0.1.3.tar.gz
| Download URL | oasis-0.1.3.tar.gz |
|---|---|
| Size | 16.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
314fa9b1e092ff9a400790f2936ff92dba97c442fdaefaed87375e48544d238d
|
|
BLAKE2b-256 checksum How to use checksums |
2a9d50a2c2d35cab948a660874a04e2068f0ebeb539b86bbc8464c8f537001b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.7
|
Release files / oasis-0.1.3-py2.py3-none-any.whl
| Download URL | oasis-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2cbd36b940de19a515512187c245621efc2063d33076e3a293f8cecb28b7d351
|
|
BLAKE2b-256 checksum How to use checksums |
143f4a1a0241c0a937a222b5b96729ba22f0fbc78f1ac1b3b218b084bcd4930c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.7
|
Security for oasis 0.1.3
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.