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:
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}
}
Metadata
Release files for sbo 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sbo-1.0.1.tar.gz | 53.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sbo-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.7 kB
Release files / sbo-1.0.1.tar.gz
| Download URL | sbo-1.0.1.tar.gz |
|---|---|
| Size | 53.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66917fdb40ba95260c1aebbccb26c6976cd2dd6b17b7199feb6ae8f940597cd0
|
|
BLAKE2b-256 checksum How to use checksums |
18375835e2d11377ad7e816830e5a667c8317424d7240590a1cb541f14d3c87f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.58.0 CPython/3.8.7
|
Release files / sbo-1.0.1-py3-none-any.whl
| Download URL | sbo-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f0f4ac72c1314699b20d5c690cb9586253d5c2f2880043e470a98429f4803e7
|
|
BLAKE2b-256 checksum How to use checksums |
04f37677e4c841bbdbc57e023722aacd8418214d6986edbe8a553389402b788a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.58.0 CPython/3.8.7
|