Skip to main content

Dataset generator utility for data science projects

Project description

Ensembleset

PyPI release Python CIDevcontainer

Ensemblesets generates dataset ensembles by applying a randomized sequence of feature engineering methods to a randomized subset of input features.

1. Installation

Install the pre-release alpha from PyPI with:

pip install ensembleset

2. Usage

See the example usage notebook.

Initialize an ensembleset class instance, passing in the label name a training DataFrame. Optionally, include a test DataFrame and/or list of any string features. Then call the make_datasets() to generate an ensembleset, specifying:

  1. The number of individual datasets to generate.
  2. The number of feature to randomly select for each feature engineering step.
  3. The number of feature engineering steps to run.
import ensembleset.dataset as ds

data_ensemble=ds.DataSet(
    label='label_column_name',
    train_data=train_df,
    test_data=test_df
    string_features=['string_feature_column_names']
)

data_ensemble.make_datasets(
    n_datasets=10,
    n_features=7,
    n_steps=5
)

By default, generated datasets will be saved to HDF5 in data/dataset.h5 using the following structure:

dataset.h5
├──train
│   ├── labels
|   ├── 1
|   ├── .
|   ├── .
|   ├── .
|   └── n
│
└──test
    ├── labels
    ├── 1
    ├── .
    ├── .
    ├── .
    └── n

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

ensembleset-1.0a10.tar.gz (238.7 kB view details)

Uploaded Source

Built Distribution

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

ensembleset-1.0a10-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file ensembleset-1.0a10.tar.gz.

File metadata

  • Download URL: ensembleset-1.0a10.tar.gz
  • Upload date:
  • Size: 238.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ensembleset-1.0a10.tar.gz
Algorithm Hash digest
SHA256 6ebe65c29ae88d40585ffcacd3df43a9674fc6d164926363e9f1c24932f2ad3e
MD5 897ae1c1316ac120de456a10f0317226
BLAKE2b-256 b4ffd6b3cb666af802f536fdfef2b5f7e4167421113222e2eafe56506fddb81d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ensembleset-1.0a10.tar.gz:

Publisher: publish_pypi.yml on gperdrizet/ensembleset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ensembleset-1.0a10-py3-none-any.whl.

File metadata

  • Download URL: ensembleset-1.0a10-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ensembleset-1.0a10-py3-none-any.whl
Algorithm Hash digest
SHA256 4938e5da7c163cfcb79c090f7331daee587c14b9b4d1e5354457714edac15d2a
MD5 6162b29047e0dd8e6e53a16a9391d1da
BLAKE2b-256 10ad9895c17ff6035b2f3db11707910269965fb04be9d68d49a67db567895c1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ensembleset-1.0a10-py3-none-any.whl:

Publisher: publish_pypi.yml on gperdrizet/ensembleset

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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