pass test

This commit is contained in:
tqchen 2014-05-02 18:04:45 -07:00
parent cc91c73160
commit c1223bfdef

View File

@ -136,14 +136,13 @@ public:
}
ngleft -= 1; ngacc += 1;
int pass = 1;
if( fwlist != NULL ){
int pass;
utils::Assert( fscanf( fwlist, "%u", &pass ) ==1 );
}
if( pass == 0 ){
vskip( fheader ); ngacc -= 1;
}
}
}else{
const int nfeat = readnum( fheader );
std::vector<unsigned> findex;
std::vector<float> fvalue;
@ -154,7 +153,7 @@ public:
// push back data :)
this->info.labels.push_back( label );
this->data.AddRow( findex, fvalue );
}
if( ngleft == 0 && fgroup != NULL && ngacc != 0 ){
info.group_ptr.push_back( info.group_ptr.back() + ngacc );
utils::Assert( info.group_ptr.back() == data.NumRow(), "group size must match num rows" );