Ignore:
Timestamp:
Mar 17, 2007, 10:54:52 PM (15 years ago)
Author:
Peter
Message:

Changed name again. ROCScore is now called AUC. Also fixed several bugs and added test for these.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AUC.cc

    r810 r820  
    2222*/
    2323
    24 #include "ROCScore.h"
     24#include "AUC.h"
    2525#include "yat/classifier/DataLookupWeighted1D.h"
    2626#include "yat/classifier/Target.h"
     
    3737namespace statistics { 
    3838
    39   ROCScore::ROCScore(bool absolute)
     39  AUC::AUC(bool absolute)
    4040    : Score(absolute)
    4141  {
    4242  }
    4343
    44   double ROCScore::score(const classifier::Target& target,
    45                          const utility::vector& value) const
     44  double AUC::score(const classifier::Target& target,
     45                    const utility::vector& value) const
    4646  {
    4747    assert(target.size()==value.size());
     
    5757
    5858
    59   double ROCScore::score(const classifier::Target& target,
    60                          const classifier::DataLookupWeighted1D& value) const
     59  double AUC::score(const classifier::Target& target,
     60                    const classifier::DataLookupWeighted1D& value) const
    6161  {
    6262    assert(target.size()==value.size());
     
    7373
    7474
    75   double ROCScore::score(const classifier::Target& target,
    76                          const utility::vector& value,
    77                          const utility::vector& weight) const
     75  double AUC::score(const classifier::Target& target,
     76                    const utility::vector& value,
     77                    const utility::vector& weight) const
    7878  {
    7979    assert(target.size()==value.size());
     
    9090
    9191
    92   double
    93   ROCScore::score(const MultiMap& m) const
     92  double AUC::score(const MultiMap& m) const
    9493  {
    9594    double area=0;
Note: See TracChangeset for help on using the changeset viewer.