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 is described in detail within the paper TBA. 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 TBA:

@article{name2020sbo,
  Author = {TBA},
  Journal = {arXiv preprint arXiv:TBA},
  Title = {TBA},
  Year = {2020}
}

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sbo-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sbo-1.0.0.tar.gz
  • Upload date:
  • Size: 53.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7

File hashes

Hashes for sbo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 94a6aa5f4b3ba5480906490a580e668e08ad58006787d04dd131366fb27d3a2d
MD5 81b5900b1c9d866783e78a6a901aac8d
BLAKE2b-256 3dcd871dde5b5ca0d246ddd06f704b3aca5c208c54222427600b5020f92943d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sbo-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7

File hashes

Hashes for sbo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c969bca7859de9bc8f479a206dcdcc7cf07b37f033719f1b555b155b5a0dffbc
MD5 b9bbac4a0f6b2d09508ca4701bc2b3c2
BLAKE2b-256 69385d7c2d45c582e30e80828bfc290302bdc61963473b5f25d40ade2ee92ee8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page