Skip to content

Fix calibration docstring escape warning#1149

Draft
Mirochill wants to merge 1 commit into
sunlabuiuc:masterfrom
Mirochill:hotfix/1142-raw-calibration-docstrings
Draft

Fix calibration docstring escape warning#1149
Mirochill wants to merge 1 commit into
sunlabuiuc:masterfrom
Mirochill:hotfix/1142-raw-calibration-docstrings

Conversation

@Mirochill
Copy link
Copy Markdown

Fixes #1142

Summary

  • Marks the LaTeX-bearing ece_confidence_multiclass docstring as raw.
  • Uses single LaTeX backslashes inside the raw docstring so the rendered docstring content stays unchanged.
  • Leaves calibration logic unchanged.

Validation

  • rg -n "def ece_confidence_multiclass" pyhealth/metrics/calibration.py
  • rg -n "Expected Calibration Error" pyhealth/metrics/calibration.py
  • rg -n "\\sum" pyhealth/metrics/calibration.py
  • rg -n "\\cdot" pyhealth/metrics/calibration.py
  • git diff --check upstream/master..HEAD
  • Tests not run locally

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.

SyntaxWarning: Invalid escape sequences in calibration.py docstrings

1 participant