soft-brownian-offset
Soft Brownian Offset (SBO) defines an iterative approach to translate points by a most likely distance from a given dataset. It can be used for generating out-of-distribution samples.
Installation
This project is hosted on PyPI and can therefore be installed easily through pip:
pip install sbo
Dependending on your setup you may need to add --user after the install.
Usage
For brevity's sake here's a short introduction to the library's usage:
from sklearn.datasets import make_moons
from sbo import soft_brownian_offset
X, _ = make_moons(n_samples=60, noise=.08)
X_ood = soft_brownian_offset(X, d_min=.35, d_off=.24, n_samples=120, softness=0)
For more details please see the documentation.
Background
The technique allows for trivial OOD generation -- as shown above -- or more complex schemes that apply the transformation of learned representations. For an in-depth look at the latter please refer to the paper that is available as open access from the CVF. For citations please see cite.
Demonstration
See the following plot to gain intuition on the approach's results:
Please see the documentation for the source code to recreate the plot.
Cite
Please cite SBO in your paper if it helps your research:
@inproceedings{MBH21,
author = {Möller, Felix and Botache, Diego and Huseljic, Denis and Heidecker, Florian and Bieshaar, Maarten and Sick, Bernhard},
booktitle = {{Proc. of CVPR SAIAD Workshop}},
title = {{Out-of-distribution Detection and Generation using Soft Brownian Offset Sampling and Autoencoders}},
year = 2021
}
Metadata
Release files for sbo 1.1.0
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 | |
|---|---|---|---|---|
| sbo-1.1.0.tar.gz | 54.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sbo-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.9 kB
Release files / sbo-1.1.0.tar.gz
| Download URL | sbo-1.1.0.tar.gz |
|---|---|
| Size | 54.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e086f0b662926a503e2d5e3822c629dafba6b38674a50d01bf52bde32243bda3
|
|
BLAKE2b-256 checksum How to use checksums |
9a71078258b1957efcd86b54dee5c6e18af4264cee6ba1d4814d240d8d392de5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
|
Release files / sbo-1.1.0-py3-none-any.whl
| Download URL | sbo-1.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12c4d17890f1c52da1b43524a46229d2d08182c8c371e6f4e8a1bc1189a43657
|
|
BLAKE2b-256 checksum How to use checksums |
7fb08d9d55bd4916f7cb6a0f2d4aa0f3287e6d9b78ca0beff3eaf7a03e6a6340
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11
|
Security for sbo 1.1.0
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.