Merge branch 'dev' of https://github.com/tqchen/xgboost into dev

This commit is contained in:
yepyao
2014-05-17 11:36:12 +08:00
5 changed files with 63 additions and 3 deletions

View File

@@ -97,8 +97,8 @@ namespace xgboost{
*/
inline void InitTrainer(void){
if( mparam.num_class != 0 ){
if( name_obj_ != "softmax" ){
name_obj_ = "softmax";
if( name_obj_ != "multi:softmax" ){
name_obj_ = "multi:softmax";
printf("auto select objective=softmax to support multi-class classification\n" );
}
}