Ignore:
Timestamp:
Dec 22, 2005, 4:03:51 PM (16 years ago)
Author:
Peter
Message:

I dont know what happened, but everything is changed...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/CrossSplitting.cc

    r460 r475  
    22
    33
    4 #include <c++_tools/gslapi/vector.h>
     4#include <c++_tools/classifier/Target.h>
    55#include <c++_tools/classifier/CrossSplitting.h>
    66#include <c++_tools/random/random.h>
     
    1111namespace classifier { 
    1212
    13   CrossSplitting::CrossSplitting(const theplu::gslapi::vector& target,
    14                                    const size_t k)
    15     :count_(0),index_negative_(std::vector<size_t>()),
    16      index_positive_(std::vector<size_t>()), k_(k)
     13  CrossSplitting::CrossSplitting(const Target& target, const size_t k)
     14    :count_(0), k_(k)
    1715 
    1816  {
     
    4442    size_t end = int(index_positive_.size()*count_/k_);
    4543    for (size_t i=0; i<index_positive_.size(); i++)
    46       if (i<begin || i>=end)
     44      if (i<begin || i>=end){
    4745        training_set.push_back(index_positive_[i]);
     46      }
    4847   
    4948    begin = int(index_negative_.size()*(count_-1)/k_);
Note: See TracChangeset for help on using the changeset viewer.