Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created March 28, 2011 02:59
Show Gist options
  • Save michaeltwofish/889935 to your computer and use it in GitHub Desktop.
Save michaeltwofish/889935 to your computer and use it in GitHub Desktop.
def unweightedAUC
total = 0
(0..(self.m_NumClasses - 1)).each do |index|
total += areaUnderROC(index)
end
total.to_f/self.m_NumClasses
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment