fix softmax
This commit is contained in:
parent
23f4c41035
commit
416050d5c0
@ -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" );
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user