Sequential Conditional Sampling
Conditional sampling allows you to fix any values you'd like to see in the synthetic data. The rest of the synthetic data adapts to the values you provide. For sequential data, you can fix the context columns that remain static for the duration of the sequence.
Condition on Known Context
sample_sequential_columns
Use this function to sample the sequences based on known context columns that do not change.
Parameters
(required)
context_columns: A pandas DataFrame that contains the sequence key and all the context columns of your data that do not vary with respect to time. Each row corresponds to a sequence that you want to synthesize.sequence_length: An integer >0 describing the length of each sequence. If you provideNone, the synthesizer will determine the lengths algorithmically, and the length may be different for each sequence. Defaults toNone.
Returns A pandas DataFrame object with synthetic data. The synthetic data is based on the referenced, context columns.
Last updated