fix mushroom
This commit is contained in:
@@ -298,10 +298,10 @@ namespace xgboost{
|
||||
}else{
|
||||
// right then left,
|
||||
TSplitCond cond = nodes[ nid ].split_cond();
|
||||
fprintf( fo, "%d:[f%u>%f] yes=%d,no=%d\n", nid,
|
||||
nodes[ nid ].split_index(), float(cond), nodes[ nid ].cright(), nodes[ nid ].cleft() );
|
||||
this->Dump( nodes[ nid ].cright(), fo, depth+1 );
|
||||
fprintf( fo, "%d:[f%u<%f] yes=%d,no=%d\n", nid,
|
||||
nodes[ nid ].split_index(), float(cond), nodes[ nid ].cleft(), nodes[ nid ].cright() );
|
||||
this->Dump( nodes[ nid ].cleft(), fo, depth+1 );
|
||||
this->Dump( nodes[ nid ].cright(), fo, depth+1 );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user