-
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
Fix _get_likelihoods not generating likelihood values #1720
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1720 +/- ##
==========================================
+ Coverage 97.08% 97.13% +0.04%
==========================================
Files 48 48
Lines 4499 4507 +8
==========================================
+ Hits 4368 4378 +10
+ Misses 131 129 -2 ☔ View full report in Codecov by Sentry. |
transformed = data_processor.transform(table_rows) | ||
if transformed.index.name: | ||
table_rows = table_rows.set_index(transformed.index.name) | ||
|
||
table_rows = pd.concat( | ||
[transformed, table_rows.drop(columns=transformed.columns)], | ||
axis=1 | ||
) |
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.
what is this for?
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.
We have to transform the child row while keeping any extra columns in order for _get_likelihoods
to work properly.
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!
Sampling after calling
reset_sampling
was different because bothfit
andsample
have to calltransform
inHMA
. Resetting sampling in the data processor after fitting re-aligns the randomness for sampling.