-
Notifications
You must be signed in to change notification settings - Fork 317
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
Enable evaluation to work with new metadata #2174
Conversation
sdv/evaluation/single_table.py
Outdated
@@ -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) |
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.
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?
21c5a37
to
3946b5f
Compare
3946b5f
to
2e25c3f
Compare
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.
LGTM
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.
Resolves #2130