Skip to main content

SBO defines an iterative approach to translate points by a most likely distance from a given dataset

Project description

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:

demonstration

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
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sbo-1.1.0.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

sbo-1.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file sbo-1.1.0.tar.gz.

File metadata

  • Download URL: sbo-1.1.0.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sbo-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e086f0b662926a503e2d5e3822c629dafba6b38674a50d01bf52bde32243bda3
MD5 69993e66b29a676947bbd10f1887332b
BLAKE2b-256 9a71078258b1957efcd86b54dee5c6e18af4264cee6ba1d4814d240d8d392de5

See more details on using hashes here.

File details

Details for the file sbo-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sbo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for sbo-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12c4d17890f1c52da1b43524a46229d2d08182c8c371e6f4e8a1bc1189a43657
MD5 f0a47eb480c8790bb739143e9ac4edb7
BLAKE2b-256 7fb08d9d55bd4916f7cb6a0f2d4aa0f3287e6d9b78ca0beff3eaf7a03e6a6340

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page