change test task to pred
This commit is contained in:
parent
a8f69878eb
commit
c7b29774c2
@ -42,8 +42,8 @@ namespace xgboost{
|
|||||||
this->TaskDumpPath();
|
this->TaskDumpPath();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if( task == "test" ){
|
if( task == "pred" ){
|
||||||
this->TaskTest();
|
this->TaskPred();
|
||||||
}else{
|
}else{
|
||||||
this->TaskTrain();
|
this->TaskTrain();
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ namespace xgboost{
|
|||||||
learner.SaveModel( fo );
|
learner.SaveModel( fo );
|
||||||
fo.Close();
|
fo.Close();
|
||||||
}
|
}
|
||||||
inline void TaskTest( void ){
|
inline void TaskPred( void ){
|
||||||
std::vector<float> preds;
|
std::vector<float> preds;
|
||||||
if( !silent ) printf("start prediction...\n");
|
if( !silent ) printf("start prediction...\n");
|
||||||
learner.Predict( preds, data );
|
learner.Predict( preds, data );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user