Sample Realistic Data
sample
from sdv.utils import load_synthesizer
synthesizer = load_synthesizer(filepath='my_synthesizer.pkl')
# for multi-table synthesizers: scale the dataset up using the scale parameter
synthetic_data = synthesizer.sample(scale=1.5)
# for single-table synthesizers: input the number of row to sample
synthetic_data = synthesizer.sample(num_rows=100)
# for sequential synthesizers: input the number of sequences to generate
synthetic_data = synthesizer.sample(num_sequences=10)reset_sampling
Last updated