Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created April 4, 2011 04:31
Show Gist options
  • Save michaeltwofish/901135 to your computer and use it in GitHub Desktop.
Save michaeltwofish/901135 to your computer and use it in GitHub Desktop.
def unweightedAUC
total = 0
(0..(self.m_NumClasses - 1)).each do |index|
auc = areaUnderROC(index)
print "Class: #{index} AUC: #{auc}"
total += auc
end
puts
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