Gretel Evaluation

Gretel.aiarrow-up-right is another tool that provides the functionality to generate synthetic tabular data. We also use their Gretel Scorearrow-up-right as an evaluation metric.

Installing Gretel Client

pip install gretel-client
circle-info

If you are using Jupyter Notebook or Google Colab, please restart your kernel after installing the package.

from sdgne.evaluator.evaluator import GretelEvaluation

evaluator = GretelEvaluation(synthesized_data, minority_column_label, 
                                minority_class_label, gretel_api_key)
                                
report = evaluator.run_gretel_quality_report()

Importing Gretel Evaluation

from sdgne.evaluator.evaluator import GretelEvaluation

Creating an evaluator

report = evaluator.run_gretel_quality_report()   

Return

A dictionary containing the quality report generated by Gretel AI [7].

circle-check

Last updated