l2x_synthetic
Exposes synthetic dataset generation code from L2X as a pip package. To install, run:
pip install l2x-synthetic
You can now create the synthetic datasets like:
from l2x_synthetic import XORGenerator
generator = XORGenerator(n_samples=100)
X, y = generator.get_data()
Which generates new data every time you call get_data() ✨. Use random_state to create reproducible data generation.
API
Available generators:
XORGenerator
from l2x_synthetic import XORGenerator
Orange Skin generator
from l2x_synthetic import OrangeGenerator
Non-linear additive generator
from l2x_synthetic import AdditiveGenerator
Switch generator: combines orange labels and non-linear additive
from l2x_synthetic import SwitchGenerator
Generator API
All generators are of the following type:
class l2x_synthetic.DataGenerator:
name: str = None # contains a human-friendly name for the generator.
n_samples: int = 100
random_state: Optional[int] = None
def get_data(self) -> Tuple[np.ndarray, np.ndarray]:
...
def get_dataframe(self) -> pd.DataFrame:
...
Development dependencies
pip install -r requirements.txt
About
See the original repo:
Metadata
Release files for l2x-synthetic 2.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 | Provenance | Actions |
|---|---|---|---|---|
| l2x-synthetic-2.0.1.tar.gz | 4.1 kB | Without provenance | Details for l2x-synthetic-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| l2x_synthetic-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for l2x_synthetic-2.0.1-py3-none-any.whl |
Total release size: 8.7 kB
Release files / l2x-synthetic-2.0.1.tar.gz
| Download URL | l2x-synthetic-2.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20c143c206ad91292134d0ad2630d4b28f366229296c0f8942097b2b0859dbce
|
|
BLAKE2b-256 checksum How to use checksums |
7d0b24f3175394ec85b31da540ad8a8a515b35c56a80d37341a7c3aa4e44a0d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / l2x_synthetic-2.0.1-py3-none-any.whl
| Download URL | l2x_synthetic-2.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51e677b9055f72f9d3b7e0327472aa668ffb73e6b6d7b3bd3a3f3605b1eda4e6
|
|
BLAKE2b-256 checksum How to use checksums |
64d0d1a5a4308788e830606e7e32d00635fda7ba01784edefc57b7f36475a092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for l2x-synthetic 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.