Nail Synthetic Data Generation Every Time with Gretel Tuner

Automate hyperparameter sweeps to create the best synthetic data for your task šŸ§¹

Before you start training a machine learning model, you have to make important choices like the number of layers in a neural network, the embedding dimension, and the details of how training should proceed. These so-called ā€œhyperparametersā€ are not learned during training and can have a dramatic impact on the quality of your model. In the case of generative models, optimized hyperparameters can be the difference between low- and high-quality synthetic data.Ā 

It is therefore essential to systematically and objectively tune your modelā€™s hyperparameters for your particular use case. Thatā€™s why today we are excited to announce Gretel Tuner, our new config-driven tool for efficiently sweeping the hyperparameters of Gretel Synthetics models.

Introducing Gretel Tuner šŸŽ›ļø

We have built Gretel Tuner directly into our Python SDK. Our implementation was designed with the following features in mind:

  1. Simplicity: Running Gretel Tuner only requires a YAML configuration and a single command using our SDK's new high-level interface.Ā 

  2. Efficiency: Gretel Tuner efficiently samples the search space by leveraging Optunaā€™s Bayesian optimization framework to home in on an optimal model configuration.

  3. Customizability: In addition to all of Gretelā€™s synthetic data quality scores, Gretel Tuner supports custom user-implemented optimization metrics, making it possible to find optimal model parameters for highly specific tasks.Ā 

The third point on custom metrics is especially exciting, since this makes it possible for our users to tune Gretel Tuner (šŸ˜‰) to their use cases. For example, we have found optimization metrics based on downstream machine learning tasks to be very effective at tuning hyperparameters to yield models that generate synthetic data of high fidelity and utility for machine learning.Ā Ā 

Ready to try Gretel Tuner? Start here šŸ‘‡

The best way to start sweeping hyperparameters with Gretel Tuner is to work through our introductory and advanced Google Colab tutorials:

  • ā€Gretel Tuner: Advanced Tutorial ā€” Learn advanced features of Gretel Tuner, including how to implement custom optimization metrics and how to enforce arbitrary constraints on the sampled model configurations.Ā 

To install Gretel Tuner locally, simply add the [tuner] option to the SDKĀ installation command:

pip install "gretel-client[tuner]"

This will install the Gretel client along with the new tuner module and its associated dependencies.Ā 

Weā€™re excited to see what youā€™ll achieve by using the Gretel Tuner alongside the Gretel Synthetic Data Platform and our fully featured SDK!