Synthetic DataGen is a powerful online library designed to generate synthetic data sets for various use cases. It leverages advanced algorithms and customizable parameters to create realistic data that closely mimics real-world data while ensuring privacy and security.
Project description
Synthetic: A Python Library for Synthetic Data Generation
Synthetic is a Python library designed to facilitate the generation of synthetic datasets for machine learning and artificial intelligence applications. It provides functions to create synthetic dataframes with various features, including numerical and categorical variables, and offers utilities for visualization and data augmentation. With Synthetic, users can quickly generate synthetic datasets tailored to their specific needs, whether for model training, testing, or exploration.
Features
- Supervised Data Generation: Generate synthetic datasets with labeled data for supervised learning tasks.
- Numerical and Categorical Features: Create synthetic dataframes with both numerical and categorical features.
- Visualization Tools: Visualize correlations and distributions of features within the synthetic datasets.
- Data Augmentation: Apply techniques such as SMOTE (Synthetic Minority Over-sampling Technique) to address class imbalance in the datasets.
Installation
You can install Synthetic using pip:
pip install synthetic
Usage
1. Generating Synthetic Dataframes
import synthetic.generate as synthetic
# Generate a supervised numerical dataframe
numerical_df = synthetic.generate_supervised_numerical_dataframe(num_samples=1000, num_features=5)
# Generate a supervised dataframe with mixed numerical and categorical features
mixed_df = synthetic.generate_supervised_mixed_dataframe(num_samples=1000, num_numerical_features=3, num_categorical_features=2)
# Display the first few rows of the generated dataframes
print("Numerical DataFrame:")
print(numerical_df.head())
print("\nMixed DataFrame:")
print(mixed_df.head())
2. Visualization
import synthetic
# Plot correlation heatmap
synthetic.plot_correlation(mixed_df)
# Plot distribution of features
synthetic.plot_distribution(mixed_df)
3. Data Augmentation
import synthetic
# Apply SMOTE for data augmentation
augmented_df = synthetic.apply_smote(mixed_df, target_column='label')
# Display the first few rows of the augmented dataframe
print("Augmented DataFrame:")
print(augmented_df.head())
Examples
For more examples and detailed usage instructions, please refer to the Examples directory in the repository.
Contributing
We welcome contributions from the community. If you encounter any issues, have suggestions for improvements, or would like to contribute code, please feel free to open an issue or pull request on our GitHub repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dpone_datagenie-0.1.tar.gz.
File metadata
- Download URL: dpone_datagenie-0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf27806b341d21124d4c8b5617c81232064cdc8b06b2b5c167a5d3391d8955e1
|
|
| MD5 |
b3423fa674683bfee3fb5e84d90d2190
|
|
| BLAKE2b-256 |
80bf7c77af24a0b229cefd8a12ded858ef00c6cb737748997e9c6e6d1287606f
|
File details
Details for the file dpone_datagenie-0.1-py3-none-any.whl.
File metadata
- Download URL: dpone_datagenie-0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71ea7a066dc99b12713b2d883f679e4f3d67e44a8c401404853ce27967f520ea
|
|
| MD5 |
ca745648e9b48d97bf270daef044cc69
|
|
| BLAKE2b-256 |
2c268b2c5cade016f9277ebb89a3e26dd3a22ed6926448aa089e2a9d8a139b83
|