Exporting Synthetic Data
Export your synthetic data back into a similar format as the original data or into a new format using the functions describe on this page.
❖ Export to a Database
Write your synthetic data into a database to use for downstream applications. Many users choose to write to a database in a lower environment for testing and development. You can also append the synthetic data to an existing database.
We recommending using the same AI Connector you used for importing training data. This connector already knows your original database schema, so it will create the same schema when exporting synthetic data. Be sure to set your export config, so the connector knows where to write the synthetic data.
For more information, see Connect Your Database docs.
connector.set_export_config(...)
connector.export(data=synthetic_data, mode='write')Write Locally
We recommend using the same data handler that you used for importing training data. This writes multiple files corresponding to each table you have synthesized. For more information, see the Import Local Data docs.
connector.write(
synthetic_data,
folder_name='project/synthetic_data',
to_csv_parameters={
'encoding': 'latin-1',
'index': False
}
mode='x')
)Last updated