Skip to content
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

Enable evaluation to work with new metadata #2174

Conversation

pvk-developer
Copy link
Member

Resolves #2130

@pvk-developer pvk-developer marked this pull request as ready for review August 6, 2024 17:07
@pvk-developer pvk-developer requested a review from a team as a code owner August 6, 2024 17:07
@pvk-developer pvk-developer requested review from rwedge, amontanez24 and lajohn4747 and removed request for a team and rwedge August 6, 2024 17:07
@@ -27,7 +28,14 @@ def evaluate_quality(real_data, synthetic_data, metadata, verbose=True):
Single table quality report object.
"""
quality_report = QualityReport()
quality_report.generate(real_data, synthetic_data, metadata.to_dict(), verbose)
if not isinstance(metadata, Metadata):
metadata = Metadata()._convert_to_unified_metadata(metadata)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method converts the old metadata to a dict under the hood, then to the new metadata object. Then you convert it back to a dict below. Why not just convert it to a dict here and use that?

@pvk-developer pvk-developer force-pushed the issue-2130-enable-evaluation-to-work-with-new-metadata branch from 21c5a37 to 3946b5f Compare August 7, 2024 05:11
@pvk-developer pvk-developer force-pushed the issue-2130-enable-evaluation-to-work-with-new-metadata branch from 3946b5f to 2e25c3f Compare August 7, 2024 15:53
Copy link
Contributor

@lajohn4747 lajohn4747 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@pvk-developer pvk-developer merged commit 68e6439 into feature/metadata Aug 8, 2024
39 checks passed
@pvk-developer pvk-developer deleted the issue-2130-enable-evaluation-to-work-with-new-metadata branch August 8, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants