Changeset 136


Ignore:
Timestamp:
Aug 16, 2004, 2:09:49 PM (17 years ago)
Author:
Peter
Message:

fixed bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ROC.cc

    r119 r136  
    8686      if (value_[i].first==1)
    8787        area_+=i;
    88         // Normalizing the area to 0-1
     88
     89    // Normalizing the area to [0,1]
    8990    area_ = (area_/nof_pos_-(nof_pos_-1)/2 )/(value_.size()-nof_pos_);
     91   
    9092    return area_;
    9193  }
     
    128130  {
    129131    value_.resize(0);
     132    nof_pos_=0;
    130133    for (unsigned int i=0; i<train_set_.size(); i++){
    131       std::pair<double, double> tmp(target_(train_set_[i]), data_(train_set_[i]));
     134      std::pair<double, double> tmp(target_(train_set_[i]),
     135                                    data_(train_set_[i]));
    132136      value_.push_back(tmp);
    133137      if (target_(train_set_[i])==1)
Note: See TracChangeset for help on using the changeset viewer.