Skip to main content

Dataset generator utility for data science projects

Project description

Ensembleset

PyPI release Python CIDevcontainer

Ensembleset 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.0a12.tar.gz (239.4 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.0a12-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ensembleset-1.0a12.tar.gz
Algorithm Hash digest
SHA256 3da72e6253a997a3cfbd5657e931d2af529d6e432c88ca122a4d6d28cfeb81af
MD5 1a26e36a0e525287163812178b04557e
BLAKE2b-256 4e93a0f40e452c6d310edcd31071430c3cf89690abd9a4b8cfebe43cd6b0b3cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ensembleset-1.0a12.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.0a12-py3-none-any.whl.

File metadata

  • Download URL: ensembleset-1.0a12-py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 0a16e72878e49681fb1800f66b9313cd62113086332e08177091cf0096a5fcdc
MD5 7431d291a970c3fd7ff92d53d22f02be
BLAKE2b-256 09f1d052fb3bc5a4422952801c940b664d78743437d53fff15c3134d51688bc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ensembleset-1.0a12-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