Skip to content

Fix calibration docstring escape warning#1149

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

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

@Mirochill
Copy link
Copy Markdown
Author

Closing this draft as a duplicate of #1141, which already covers #1142.

@Mirochill Mirochill closed this May 25, 2026
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