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

Fix SetFit notebook issues v1 #650

Merged
merged 5 commits into from
Jun 6, 2023
Merged

Fix SetFit notebook issues v1 #650

merged 5 commits into from
Jun 6, 2023

Conversation

franz101
Copy link
Contributor

@franz101 franz101 commented Jun 6, 2023

Identified issues:
Issues when running the dq_evaluate due to the automatic removal of the patches

Further investigation:
Essentiallty the cleanup manager removed the patch. The other issue was that it was checking for the config before it was initialized.

@franz101 franz101 changed the title Fix notebook issues v1 Fix SetFit notebook issues v1 Jun 6, 2023
@franz101 franz101 marked this pull request as ready for review June 6, 2023 21:26
@franz101 franz101 requested a review from a team as a code owner June 6, 2023 21:26
@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2023

Codecov Report

Merging #650 (265f8c4) into main (486728b) will increase coverage by 0.39%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main     #650      +/-   ##
==========================================
+ Coverage   83.97%   84.37%   +0.39%     
==========================================
  Files         167      167              
  Lines       13227    13274      +47     
==========================================
+ Hits        11108    11200      +92     
+ Misses       2119     2074      -45     
Impacted Files Coverage Δ
dataquality/integrations/setfit.py 83.61% <52.38%> (+27.40%) ⬆️
dataquality/loggers/base_logger.py 91.24% <100.00%> (+0.12%) ⬆️
dataquality/utils/setfit.py 81.66% <100.00%> (+0.31%) ⬆️
tests/integrations/setfit/test_setfit.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -62,6 +63,8 @@ def log_preds_setfit(

logger_config = dq.get_data_logger().logger_config
labels = logger_config.labels
epoch = 0 if epoch is None else epoch
Copy link
Contributor

Choose a reason for hiding this comment

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

slightly cleaner. If epoch is None or 0, itll be set to 0, otherwise, itll be kept

Suggested change
epoch = 0 if epoch is None else epoch
epoch = epoch or 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

genius

@franz101 franz101 enabled auto-merge (squash) June 6, 2023 21:58
@franz101 franz101 merged commit b968224 into main Jun 6, 2023
@franz101 franz101 deleted the fixes/setfit branch June 6, 2023 22:09
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