chg fmap format
This commit is contained in:
@@ -166,6 +166,7 @@ namespace xgboost{
|
||||
buffer_offset += static_cast<int>(evals_[i]->Size());
|
||||
}
|
||||
fprintf(fo, "\n");
|
||||
fflush(fo);
|
||||
}
|
||||
/*! \brief get prediction, without buffering */
|
||||
inline void Predict(std::vector<float> &preds, const DMatrix &data){
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace xgboost{
|
||||
elapsed = (unsigned long)(time(NULL) - start);
|
||||
}
|
||||
// always save final round
|
||||
if (save_period == 0 || num_round % save_period != 0){
|
||||
if ((save_period == 0 || num_round % save_period != 0) && model_out != "NONE"){
|
||||
if (model_out == "NULL"){
|
||||
this->SaveModel(num_round - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user