pass test
This commit is contained in:
parent
cc91c73160
commit
c1223bfdef
@ -136,25 +136,24 @@ public:
|
|||||||
}
|
}
|
||||||
ngleft -= 1; ngacc += 1;
|
ngleft -= 1; ngacc += 1;
|
||||||
|
|
||||||
|
int pass = 1;
|
||||||
if( fwlist != NULL ){
|
if( fwlist != NULL ){
|
||||||
int pass;
|
|
||||||
utils::Assert( fscanf( fwlist, "%u", &pass ) ==1 );
|
utils::Assert( fscanf( fwlist, "%u", &pass ) ==1 );
|
||||||
if( pass == 0 ){
|
|
||||||
vskip( fheader ); ngacc -= 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if( pass == 0 ){
|
||||||
const int nfeat = readnum( fheader );
|
vskip( fheader ); ngacc -= 1;
|
||||||
std::vector<unsigned> findex;
|
}else{
|
||||||
std::vector<float> fvalue;
|
const int nfeat = readnum( fheader );
|
||||||
// pairs
|
std::vector<unsigned> findex;
|
||||||
this->Load( findex, fvalue, fheader );
|
std::vector<float> fvalue;
|
||||||
utils::Assert( findex.size() == (unsigned)nfeat );
|
// pairs
|
||||||
if( rescale != 0 ) this->DoRescale( fvalue );
|
this->Load( findex, fvalue, fheader );
|
||||||
// push back data :)
|
utils::Assert( findex.size() == (unsigned)nfeat );
|
||||||
this->info.labels.push_back( label );
|
if( rescale != 0 ) this->DoRescale( fvalue );
|
||||||
this->data.AddRow( findex, fvalue );
|
// push back data :)
|
||||||
|
this->info.labels.push_back( label );
|
||||||
|
this->data.AddRow( findex, fvalue );
|
||||||
|
}
|
||||||
if( ngleft == 0 && fgroup != NULL && ngacc != 0 ){
|
if( ngleft == 0 && fgroup != NULL && ngacc != 0 ){
|
||||||
info.group_ptr.push_back( info.group_ptr.back() + ngacc );
|
info.group_ptr.push_back( info.group_ptr.back() + ngacc );
|
||||||
utils::Assert( info.group_ptr.back() == data.NumRow(), "group size must match num rows" );
|
utils::Assert( info.group_ptr.back() == data.NumRow(), "group size must match num rows" );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user