-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support constraints for the PAR Synthesizer #570
Comments
Hi. I am also trying to use constraints with
I get:
Thank you! |
The PARModel does not currently support constraints, so any workaround/code that was used for HMA1 will not work here.
Issue #745 is specifically tracking the feature request for supporting min/max bounds on the PARModel. However, let's continue to keep issue open for tracking the feature request of adding general constraints on sequential data. |
Hi, I am also trying to use the PAR model setting inequality constraints on sdv==1.0.
I noticed that if I try to generate financial OHLC bars data, sometimes the constraints:
are not satisfied. Use case: training/backtesting machine learning models on synthetic financial bars data. |
Hello |
is there any updates on this request? |
Hi @Ng-ms, thanks for describing your use case. In theory, this type of logic would be well-served by the FixedCombinations constraint. I am curious if for any of the columns you mention (beginning of treatment, end of treatment, code of treatment) are you marking any as There seems to be demand for this feature. I think it will be easier to accommodate constraints in PAR if either all of the columns are context columns or if all of the columns are NOT context columns. I am interested to know if that would cover most of the cases that folks have encountered? |
in this use case, these columns are not context columns. |
Hi @schweima @sokol11 @tosador @Ng-ms we've actually added partial support for constraints in PARSynthesizer in SDV 1.14.0: https://github.com/sdv-dev/SDV/releases/tag/v1.14.0 You can use PARSynthesizer with constraints as long as the columns involved with the constraint are either ALL context columns or ALL non-context columns. We've also added a section in our docs for this under the PAR Synthesizer specific section: https://docs.sdv.dev/sdv/sequential-data/modeling/customizations We're hoping this helps a few of you -- let us know! |
Environment:
Python 3.7.10
sdv 0.11
Error description:
There is no documentation detailing whether
PAR
supports constraints.Is there a way similar to the
HMA1
approach mentioned in #296 ?Initial tests with according to this workaround referenced by @npatki in #566 with the
Between
constraint are either ignored or yield NaN values when sampling.Additional information:
Any hints appreciated. Thank you! Use case: measurement time series with a lot of columns that have to be >= 0.
The text was updated successfully, but these errors were encountered: