sdv-dev / SDMetrics

Metrics to evaluate quality and efficacy of synthetic datasets.
https://docs.sdv.dev/sdmetrics
MIT License
201 stars 44 forks source link

Multi table Structure property visualization has incorrect styling #505

Closed frances-h closed 9 months ago

frances-h commented 10 months ago

Environment Details

Please indicate the following details about the environment in which you found the bug:

Error Description

Visualization for the Structure property should only be available if the table_name parameter is None. The visualization should show the scores for all tables as a bar chart. The visualization style should match the other visualizations we have in SDMetrics (i.e. same color, same font size, same plot layout).

If a table_name is provided, the method should instead error: VisualizationUnavailableError: The Structure property does not have a supported visualization for individual tables.

Steps to reproduce

from sdmetrics.demos import load_demo
from sdmetrics.reports.single_table import DiagnosticReport

real_data, synthetic_data, metadata = load_demo(modality='multi_table')

report = DiagnosticReport()
report.generate(data, synthetic_data, metadata.to_dict())

report.get_visualization('Data Structure')

report.get_visualization('Data Structure', 'users')