DataGenix
An advanced and robust library for generating synthetic datasets for machine learning and deep learning projects. Go from idea to prototype in seconds without data acquisition bottlenecks.
Installation
Install from PyPI (once published):
pip install datagenix
Or install directly from the repository:
git clone [https://github.com/yourusername/datagenix.git](https://github.com/yourusername/datagenix.git)
cd datagenix
pip install .
Ultimate Usage Example
Generate a complex, realistic dataset for a binary classification task with a single, intuitive command:
from datagenix import DataGenerator
generator = DataGenerator(seed=42)
df = generator.generate(
num_rows=1000,
numerical_whole=3,
decimal=2,
categorical=2,
boolean=1,
text=1,
uuid=1,
object_types=['name', 'email'],
target_type='binary',
missing_numerical=0.05,
missing_categorical=0.1,
correlation_strength=0.7,
group_by='customer_id',
num_groups=50,
time_series=True,
numerical_whole_range=(100, 999),
add_outliers=True,
outlier_fraction=0.02,
text_style='review'
)
print(df.head())
print(df.info())
Advanced Features
- Target Generation: Automatically create a
targetcolumn forbinary,multi-class, orregressiontasks that is logically correlated with the features. - Missing Data: Inject missing values (
NaN) into any feature type with precise fractional control (e.g.,missing_numerical=0.1). - Feature Correlation: Create linear dependencies between numerical features with adjustable
correlation_strength. - Grouped Data: Simulate real-world scenarios like customer data by grouping rows with a common ID using
group_byandnum_groups. - Time Series: Generate a chronologically sorted
timestampcolumn for time-dependent modeling. - Outlier Injection: Introduce extreme values into numerical columns to test model robustness using
add_outliersandoutlier_fraction. - Custom Ranges: Define exact
(min, max)ranges for numerical columns. - Text Styles: Generate varied text content like
review,tweet, or standardsentence.
Metadata
Release files for datagenix 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datagenix-0.1.2.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datagenix-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / datagenix-0.1.2.tar.gz
| Download URL | datagenix-0.1.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24307aecc9b508975515d621737b3271ab142019936f537b66d7d71ce58aad5c
|
|
BLAKE2b-256 checksum How to use checksums |
c56f12129e05f9ca8ad1bb235ab08c29943cb07d38bf5607617c6b52744ef34c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / datagenix-0.1.2-py3-none-any.whl
| Download URL | datagenix-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5c4fd62eb89c6408cb4e794e789847d95599e665a2ffca8cb6dab56dcd5924d
|
|
BLAKE2b-256 checksum How to use checksums |
93d80127f027aa0c9a54813cb07c614140d0e5b62f5e35e9df93c65aaf9cdc18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|