Nail Synthetic Data Generation Every Time with Gretel Tuner
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:
- Simplicity: Running Gretel Tuner only requires a YAML configuration and a single command using our SDK's new high-level interface.Ā
- Efficiency: Gretel Tuner efficiently samples the search space by leveraging Optunaās Bayesian optimization framework to home in on an optimal model configuration.
- 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: Introductory Tutorial ā Learn the basics of how to configure Gretel Tuner to sweep the hyperparameters of a Gretel Synthetics model.
- ā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:
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!