@@ -490,8 +490,8 @@ define([
490490 code : 'DecisionTreeClassifier(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
491491 returnType : 'DecisionTreeClassifier' ,
492492 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 } ,
495495 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
496496 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
497497 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
@@ -505,7 +505,7 @@ define([
505505 options : [
506506 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
507507 { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'gini' , type :'text' , usePair : true ,
508- options : [ 'gini' , 'entropy' ] } ,
508+ options : [ 'gini' , 'entropy' , 'log_loss' ] } ,
509509 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
510510 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
511511 { name : 'n_jobs' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
@@ -518,12 +518,12 @@ define([
518518 code : 'GradientBoostingClassifier(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
519519 returnType : 'GradientBoostingClassifier' ,
520520 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' ] } ,
523523 { name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
524524 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
525525 { 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' ] } ,
527527 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
528528 ]
529529 } ,
0 commit comments