Skip to main content

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
}

Metadata

Release files for sbo 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sbo 1.0.4
File Size Uploaded
sbo-1.0.4.tar.gz 54.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sbo 1.0.4
File Interpreter ABI Platform
sbo-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 62.9 kB

Release files / sbo-1.0.4.tar.gz

Download URL sbo-1.0.4.tar.gz
Size 54.4 kB
Tags Source
SHA-256 checksum
How to use checksums
75a6b4aff78c623b80b0259aed23e4b7e7f2eae3478c68ec23ef86a4b8330e4a
BLAKE2b-256 checksum
How to use checksums
7506cf3d1abd090dc6bf7b793d6b0f97e446a0228a2771ff09fba83a582d8e5d
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.1 CPython/3.8.10

Release files / sbo-1.0.4-py3-none-any.whl

Download URL sbo-1.0.4-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc1323e88d61da7b9b400115edce411395cf118fa5ce69880f4e0d621cc86184
BLAKE2b-256 checksum
How to use checksums
dcc9eb92d2647fbb9705d61c90fa5bc7a1c92bf13a16a0436df76bffd98fe993
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.1 CPython/3.8.10

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.5

2 release files

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page