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.0.5.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sbo-1.0.5.tar.gz
Algorithm Hash digest
SHA256 2b55f9a54c7954150eedf993e50d2aac43237ddb7c44a0f1b9f9e2a8a322622c
MD5 900f4e5b6a8aa545e609e31d1afacbc6
BLAKE2b-256 9011daab0a76481278f2664e533517b173f351b89b4cdbf24778bc9b5471773b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sbo-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c6848895009fe308974e10b1f0c4fc374de9e58c146bb686b92571ec71741b
MD5 183a965a47eba2d9e6eed23ad666f48f
BLAKE2b-256 255ff4b58b2089cd58c32e17ffb56c101ffbd5e9dd6490d5e318ddb9a74e8b31

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