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

Make evaluate methods return the actual object #1253

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

fealho
Copy link
Member

@fealho fealho commented Feb 9, 2023

Resolve #1190.

Make the evaluate methods return the actual object (QualityReport and DiagnosticReport) instead of only the score/result.

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2023

Codecov Report

Base: 95.72% // Head: 95.88% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (08c88fc) compared to base (c6ef0eb).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 08c88fc differs from pull request most recent head cdf517f. Consider uploading reports for the commit cdf517f to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@              Coverage Diff               @@
##           V1.0.0.dev    #1253      +/-   ##
==============================================
+ Coverage       95.72%   95.88%   +0.15%     
==============================================
  Files              47       47              
  Lines            3676     3816     +140     
==============================================
+ Hits             3519     3659     +140     
  Misses            157      157              
Impacted Files Coverage Δ
sdv/evaluation/multi_table.py 100.00% <100.00%> (ø)
sdv/evaluation/single_table.py 100.00% <100.00%> (ø)
sdv/metadata/multi_table.py 99.55% <0.00%> (+0.20%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fealho fealho marked this pull request as ready for review February 9, 2023 19:59
@fealho fealho requested a review from a team as a code owner February 9, 2023 19:59
@fealho fealho requested review from amontanez24 and pvk-developer and removed request for a team February 9, 2023 19:59
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.

One minor comment but besides that :shipit:

Comment on lines 49 to 51
quality_report = DiagnosticReport()
quality_report.generate(real_data, synthetic_data, metadata.to_dict(), verbose)
return quality_report.get_results()
return quality_report
Copy link
Contributor

Choose a reason for hiding this comment

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

minor thing I'm noticing now but these variables should probably be named diagnostic_report

"""
quality_report = DiagnosticReport()
quality_report.generate(real_data, synthetic_data, metadata.to_dict(), verbose)
return quality_report.get_results()
return quality_report
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@fealho fealho merged commit fee035e into V1.0.0.dev Feb 10, 2023
@fealho fealho deleted the issue-1190-dont-return-score branch February 10, 2023 18:02
R-Palazzo pushed a commit that referenced this pull request Feb 13, 2023
* Address feedback

* lint

* Feedback
amontanez24 pushed a commit that referenced this pull request Feb 17, 2023
* Address feedback

* lint

* Feedback
amontanez24 pushed a commit that referenced this pull request Mar 23, 2023
* Address feedback

* lint

* Feedback
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.

4 participants