Skip to content

Instantly share code, notes, and snippets.

@myui
Created November 14, 2016 08:29
Show Gist options
  • Save myui/9c8e29e0583fa6758d8f58edd2f405ba to your computer and use it in GitHub Desktop.
Save myui/9c8e29e0583fa6758d8f58edd2f405ba to your computer and use it in GitHub Desktop.
q = calibrated probability 
  = p / (p + (1-p) / w)

https://pdfs.semanticscholar.org/daf9/ed5dc6c6bad5367d7fd8561527da30e9b8dd.pdf

where 
    p = predicted probability 
    w = negative down-sampling rate
      = (Neg/Neg+(Pos*k)) / (Neg/(Neg+Pos))
      = (Neg/Neg+(Pos*k)) * ((Neg+Pos)/Neg)
      = (Neg+Pos) / (Neg+(Pos*k))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment