-
Notifications
You must be signed in to change notification settings - Fork 5
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
chore: Update experiment configs and bugfixes #631
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #631 +/- ##
==========================================
- Coverage 85.61% 85.59% -0.03%
==========================================
Files 258 258
Lines 11334 11338 +4
==========================================
+ Hits 9704 9705 +1
- Misses 1630 1633 +3 ☔ View full report in Codecov by Sentry. |
@@ -103,10 +103,14 @@ def inform_new_model( | |||
) -> None: | |||
"""Update the cost tracker with the new model metadata.""" | |||
self._unincorporated_samples = 0 | |||
|
|||
# reset regret | |||
self.latency_tracker.inform_trigger() |
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.
Bugfix
@@ -154,4 +157,36 @@ def _alibi_detect_metric_factory(config: AlibiDetectDriftMetric, embeddings_ref: | |||
**kwargs, | |||
) | |||
|
|||
if isinstance(config, AlibiDetectLSDDDriftMetric): | |||
return LSDDDrift( |
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.
New
@@ -24,9 +24,6 @@ def _batch_evaluated_callback(self, y_true: torch.Tensor, y_pred: torch.Tensor, | |||
self.total_correct += labeled_correctly | |||
self.samples_seen += batch_size | |||
|
|||
self.total_correct += labeled_correctly |
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.
Bugfix
AlibiDetectDriftMetric = Annotated[ | ||
AlibiDetectMmdDriftMetric | AlibiDetectKSDriftMetric | AlibiDetectCVMDriftMetric, | ||
AlibiDetectMmdDriftMetric |
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.
Added more drift detectors.
@@ -1,17 +1,16 @@ | |||
import os |
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.
various experiments for thesis
@@ -2,12 +2,15 @@ | |||
|
|||
import pandas as pd |
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.
Various thesis experiments for huffpost.
@@ -2,12 +2,16 @@ | |||
|
|||
import pandas as pd |
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.
Various thesis experiments for arxiv.
transformed["category"] = pd.Categorical(transformed["category"]).codes | ||
if not keep_true_category: | ||
# to int-categorical | ||
transformed["category"] = pd.Categorical(transformed["category"]).codes |
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.
For exploring dataset with original labels.
Motivation
Final changes from thesis.