@@ -490,8 +490,8 @@ define([
490
490
code : 'DecisionTreeClassifier(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
491
491
returnType : 'DecisionTreeClassifier' ,
492
492
options : [
493
- { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'squared_error ' , type :'text' ,
494
- options : [ 'squared_error' , 'friedman_mse' , 'absolute_error' , 'poisson '] , usePair : true } ,
493
+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'gini ' , type :'text' ,
494
+ options : [ 'gini' , 'entropy' , 'log_loss '] , usePair : true } ,
495
495
{ name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
496
496
{ name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
497
497
{ name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
@@ -505,7 +505,7 @@ define([
505
505
options : [
506
506
{ name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
507
507
{ name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'gini' , type :'text' , usePair : true ,
508
- options : [ 'gini' , 'entropy' ] } ,
508
+ options : [ 'gini' , 'entropy' , 'log_loss' ] } ,
509
509
{ name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
510
510
{ name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
511
511
{ name : 'n_jobs' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
@@ -518,12 +518,12 @@ define([
518
518
code : 'GradientBoostingClassifier(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
519
519
returnType : 'GradientBoostingClassifier' ,
520
520
options : [
521
- { name : 'loss' , component : [ 'option_select' ] , type : 'text' , default : 'deviance ' , type : 'text' , usePair : true ,
522
- options : [ 'deviance ' , 'exponential' ] } ,
521
+ { name : 'loss' , component : [ 'option_select' ] , type : 'text' , default : 'log_loss ' , type : 'text' , usePair : true ,
522
+ options : [ 'log_loss ' , 'exponential' ] } ,
523
523
{ name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
524
524
{ name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
525
525
{ name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'friedman_mse' , type :'text' , usePair : true ,
526
- options : [ 'friedman_mse' , 'squared_error' , 'mse' , 'mae' ] } ,
526
+ options : [ 'friedman_mse' , 'squared_error' ] } ,
527
527
{ name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
528
528
]
529
529
} ,
0 commit comments