-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 2130 metadata for evaluation #2149
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…tadata_over_multi
…tadata_over_multi
if isinstance(metadata, SingleTableMetadata): | ||
self.metadata = Metadata().load_from_dict(metadata.to_dict()) | ||
warnings.warn(DEPRECATION_MSG, FutureWarning) | ||
self.metadata = Metadata()._convert_to_unified_metadata(metadata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to rebase this. We're not converting to unified metadata here anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to change the base of this, this is going to the 2128
branch but I think it has to go to feature/metadata
🤦🏻♂️
if len(metadata.tables) > 1: | ||
raise ValueError('Only a single table is allowed in metadata.') | ||
|
||
metadata_dict = next(iter(metadata.tables.values())).to_dict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case where it is the old metadata, we convert it to the new one by converting to a cit, and then loading from that. Then we go back to a dict here. Maybe we should just convert to a dict and raise the warning instead of converting back and forth
Closing this pull request as we went with a direction: #2174 |
resolves #2130
CU-86b19awxc
Make the evaluation methods work with metadata for both multi and single table methods:
sdv.evaluation.single_table.evaluate_quality
sdv.evaluation.single_table.run_diagnostic
sdv.evaluation.single_table.get_column_plot
sdv.evaluation.single_table.get_column_pair_plot
sdv.evaluation.multi_table.evaluate_quality
sdv.evaluation.multi_table.run_diagnostic
sdv.evaluation.multi_table.get_column_plot
sdv.evaluation.multi_table.get_column_pair_plot
sdv.evaluation.multi_table.get_cardinality_plot