Skip to content

fix loss calculation; re-run notebooks; misc cleanup - #19

Merged
gmgeorg merged 2 commits into
mainfrom
conditional/1
Aug 20, 2026
Merged

gmgeorg merged 2 commits into
mainfrom
conditional/1

Conversation

@gmgeorg

@gmgeorg gmgeorg commented Aug 20, 2026

Copy link
Copy Markdown
Owner
  • Fix OutcomeLoss to compute the exact negative marginal log-likelihood of the state mixture (logsumexp) instead of a weighted sum of per-state NLLs.
  • Fix propensity metrics (PropensityScoreBinaryCrossentropy, PropensityScoreAUC) to read the treatment label from the last column of y_true instead of a hardcoded [:, 1:] slice, which broke for outcomes with >1 column (e.g. survival's event_time + event_indicator).
  • Fix TreatmentMeanAbsoluteError using the wrong n_outcome_true_cols attribute.
  • Wire up the binary_survival dataset module in datasets/init.py.
  • Add regression tests for the above.
  • Re-run notebooks with the updated loss/metrics.

gmgeorg and others added 2 commits August 20, 2026 16:19
- Fix OutcomeLoss to compute the exact negative marginal log-likelihood of
  the state mixture (logsumexp) instead of a weighted sum of per-state NLLs.
- Fix propensity metrics (PropensityScoreBinaryCrossentropy, PropensityScoreAUC)
  to read the treatment label from the last column of y_true instead of a
  hardcoded [:, 1:] slice, which broke for outcomes with >1 column (e.g.
  survival's event_time + event_indicator).
- Fix TreatmentMeanAbsoluteError using the wrong n_outcome_true_cols attribute.
- Wire up the binary_survival dataset module in datasets/__init__.py.
- Add regression tests for the above.
- Re-run notebooks with the updated loss/metrics.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gmgeorg
gmgeorg merged commit bbbb21a into main Aug 20, 2026
1 check passed
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.

1 participant