Ignore:
Timestamp:
Mar 5, 2007, 8:44:03 PM (15 years ago)
Author:
Peter
Message:

changing name to ROCScore and also added some cassert includes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/subset_generator_test.cc

    r779 r781  
    3232#include "yat/classifier/SVM.h"
    3333#include "yat/classifier/NCC.h"
    34 #include "yat/statistics/ROCscore.h"
     34#include "yat/statistics/ROCScore.h"
    3535#include "yat/statistics/PearsonDistance.h"
    3636#include "yat/utility/matrix.h"
    3737
     38#include <cassert>
    3839#include <fstream>
    3940#include <iostream>
     
    7879  classifier::CrossValidationSampler sampler(target, 30, 3);
    7980
    80   statistics::ROCscore score;
     81  statistics::ROCScore score;
    8182  classifier::FeatureSelectorIR fs(score, 96, 0);
    8283  *error << "building SubsetGenerator" << std::endl;
     
    9596  utility::vector out(target.size(),0);
    9697  for (size_t i = 0; i<out.size(); ++i)
    97     out(i)=ensemble_svm.validate()[0][i].mean();
    98   statistics::ROCscore roc;
     98    out(i)=ensemble_svm.validate()[0][i].mean(); 
     99  statistics::ROCScore roc;
    99100  *error << roc.score(target,out) << std::endl;
    100101
Note: See TracChangeset for help on using the changeset viewer.