Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1215bdd

Browse files
author
minjk-bl
committed
Fixed dt-clf criterion options
1 parent9fe0c6c commit1215bdd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎visualpython/data/m_ml/mlLibrary.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp