fix test to pred

This commit is contained in:
tqchen 2014-03-24 00:31:53 -07:00
parent 57713be940
commit d93e8717c1

View File

@ -111,7 +111,7 @@ namespace xgboost{
inline void InitData( void ){ inline void InitData( void ){
if( name_fmap != "NULL" ) fmap.LoadText( name_fmap.c_str() ); if( name_fmap != "NULL" ) fmap.LoadText( name_fmap.c_str() );
if( task == "dump" ) return; if( task == "dump" ) return;
if( task == "test" || task == "dumppath" ){ if( task == "pred" || task == "dumppath" ){
data.CacheLoad( test_path.c_str(), silent!=0, use_buffer!=0 ); data.CacheLoad( test_path.c_str(), silent!=0, use_buffer!=0 );
}else{ }else{
// training // training