-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
dataquality/utils/setfit.py
Outdated
@@ -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 |
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.
slightly cleaner. If epoch is None or 0, itll be set to 0, otherwise, itll be kept
epoch = 0 if epoch is None else epoch | |
epoch = epoch or 0 |
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.
genius
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.