Comments (6)
Hello! I am attempting to add the TabDDPM generator to plugins by adapting the code in https://github.com/rotot0/tab-ddpm. I have forked the repository and added a branch tab_ddpm. I put the plugin in generic/plugin_ddpm.py and the DDPM model in core/models/tabular_ddpm. This is only a quick and dirty attempt, and I will make further updates soon.
from synthcity.
Hello @tztsai
Thank you for working on this.
Regarding your questions:
- You can extend the
TabularEncoder
with a parameter for the continuous variables, to switch between theQuantileTransformer
andBayesianGMM
. It would be better to follow the original paper, and maybe other models will need to encode using QuantileTransformer in the future. - Sure. You can assume by default, that the labels are the
cond
for your model, but give the option to the power users to provide custom conditionals, as long as they understand what is happening. Ifcond
is none, you use the labels in the dataset
from synthcity.
Hello @tztsai
Thank you for working on this. Please raise a PR, and make sure you added tests for your changes.
At the same time, there is an important problem with https://github.com/rotot0/tab-ddpm .
It has no LICENSE next to the code, meaning we cannot directly integrate or copy that code into our codebase.
So, for a successful PR, you must reimplement the relevant parts(and drop the configs, requirements etc.),, before adding them to the synthcity codebase.
Please let us know if you have any questions.
cc @robsdavis
from synthcity.
Hello @bcebere
Thank you for your reply! I am reimplementing it now. I have two questions:
- Is it always required to use the TabularEncoder to preprocess the input data? In the paper of TabDDPM, the numerical features are preprocessed by a Gaussian quantile transformer and the categorical features by a one-hot encoder. Although the transformation of categorical features is the same, the TabularEncoder uses BayesianGMM to transform the numerical features. Is it OK to directly feed the data encoded by the TabularEncoder into the diffusion model and ignore the original preprocessing procedures in the original paper?
- In the original paper, for a classification task, the conditional probability distributions
$P(x_t\mid x_{t-1}, y),t=1,\ldots,T$ are learned, where$y$ is the label. To implement thefit
method of a plugin for a classification task, do we provide the labels as the keyword argumentcond
?
from synthcity.
Hello,
I found there is no log uniform distribution of float numbers when I was implementing the search space of TabDDPM. Could it be added in the framework?
from synthcity.
I think I have finished the reimplementation of TabDDPM. The current version supports both classification and regression, and supports using no conditionals, using the target as conditionals, and using user-provided conditionals to train and generate data. Since all tests were passed, I have created a PR. Please check that out and do not hesitate to inform me if there are any problems.
from synthcity.
Related Issues (20)
- Add a plugin registry
- Include Be_great and arfpy plugins in main code
- Airfoil dataset no longer available from source
- Upgrade PyTorch requirements from ">=1.10.0,<2.0" to "2.0.1" HOT 3
- Plugin decaf load failed HOT 2
- Representation of categorical features
- "Fatal error: 'omp.h' file not found" when importing plugins
- Parameter `delta` is unavailable in `PATEGan`
- AttackEvaluator classes give back empty dictionary
- Missing documentation items
- Question about the implements of Beta_coverage
- Increase upper bound on numpy version
- Does this library generate synthetic EEG signals, MRI images? HOT 1
- Incompatibility between SynthCity and scikit_learn 1.4. With workaround and possible fix HOT 1
- eval does not share encoding transformers
- PydanticUserError in schema.py HOT 1
- Issue with networkx 3.0
- Benchmark problem on survivalgan HOT 1
- importing plugins fails HOT 2
- Macos-latest workflow HTTPS error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synthcity.