fix softmax
This commit is contained in:
parent
6c72d02205
commit
b07ff1ac8d
@ -97,8 +97,8 @@ namespace xgboost{
|
|||||||
*/
|
*/
|
||||||
inline void InitTrainer(void){
|
inline void InitTrainer(void){
|
||||||
if( mparam.num_class != 0 ){
|
if( mparam.num_class != 0 ){
|
||||||
if( name_obj_ != "softmax" ){
|
if( name_obj_ != "multi:softmax" ){
|
||||||
name_obj_ = "softmax";
|
name_obj_ = "multi:softmax";
|
||||||
printf("auto select objective=softmax to support multi-class classification\n" );
|
printf("auto select objective=softmax to support multi-class classification\n" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user