@@ -275,7 +275,7 @@ define([
275275 code : 'SVR(${C}${kernel}${gamma}${random_state}${etc})' ,
276276 options : [
277277 { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
278- { name : 'kernel' , component : [ 'option_select' ] , default : 'rbf' , type :'text' , usePair : true ,
278+ { name : 'kernel' , component : [ 'option_select' ] , type : 'text' , default : 'rbf' , type :'text' , usePair : true ,
279279 options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] } ,
280280 { name : 'gamma' , component : [ 'option_suggest' ] , default : 'scale' , type :'text' , usePair : true ,
281281 options : [ 'scale' , 'auto' ] } ,
@@ -287,7 +287,7 @@ define([
287287 import : 'from sklearn.tree import DecisionTreeRegressor' ,
288288 code : 'DecisionTreeRegressor(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
289289 options : [
290- { name : 'criterion' , component : [ 'option_select' ] , default : 'squared_error' , type :'text' ,
290+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'squared_error' , type :'text' ,
291291 options : [ 'squared_error' , 'friedman_mse' , 'absolute_error' , 'poisson' ] } ,
292292 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
293293 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
@@ -300,7 +300,7 @@ define([
300300 code : 'RandomForestRegressor(${n_estimators}${criterion}${max_depth}${min_samples_split}${n_jobs}${random_state}${etc})' ,
301301 options : [
302302 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
303- { name : 'criterion' , component : [ 'option_select' ] , default : 'squared_error' , type :'text' , usePair : true ,
303+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'squared_error' , type :'text' , usePair : true ,
304304 options : [ 'squared_error' , 'absolute_error' , 'poisson' ] } ,
305305 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
306306 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
@@ -313,11 +313,11 @@ define([
313313 import : 'from sklearn.ensemble import GradientBoostingRegressor' ,
314314 code : 'GradientBoostingRegressor(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
315315 options : [
316- { name : 'loss' , component : [ 'option_select' ] , default : 'squared_error' , type :'text' , usePair : true ,
316+ { name : 'loss' , component : [ 'option_select' ] , type : 'text' , default : 'squared_error' , type :'text' , usePair : true ,
317317 options : [ 'squared_error' , 'absolute_error' , 'huber' , 'quantile' ] } ,
318318 { name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
319319 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
320- { name : 'criterion' , component : [ 'option_select' ] , default : 'friedman_mse' , type :'text' , usePair : true ,
320+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'friedman_mse' , type :'text' , usePair : true ,
321321 options : [ 'friedman_mse' , 'squared_error' , 'mse' , 'mae' ] } ,
322322 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
323323 ]
@@ -341,7 +341,7 @@ define([
341341 import : 'from lightgbm import LGBMRegressor' ,
342342 code : 'LGBMRegressor(${boosting_type}${max_depth}${learning_rate}${n_estimators}${random_state}${etc})' ,
343343 options : [
344- { name : 'boosting_type' , component : [ 'option_select' ] , default : 'gbdt' , type : 'text' , usePair : true ,
344+ { name : 'boosting_type' , component : [ 'option_select' ] , type : 'text' , default : 'gbdt' , type : 'text' , usePair : true ,
345345 options : [ 'gbdt' , 'dart' , 'goss' , 'rf' ] } ,
346346 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : '-1' , usePair : true } ,
347347 { name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
@@ -356,9 +356,9 @@ define([
356356 code : 'CatBoostRegressor(${learning_rate}${loss_function}${task_type}${max_depth}${n_estimators}${random_state}${etc})' ,
357357 options : [
358358 { name : 'learning_rate' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
359- { name : 'loss_function' , component : [ 'option_select' ] , default : 'RMSE' , type :'text' , usePair : true ,
359+ { name : 'loss_function' , component : [ 'option_select' ] , type : 'text' , default : 'RMSE' , type :'text' , usePair : true ,
360360 options : [ 'RMSE' , 'absolute_error' , 'huber' , 'quantile' ] } ,
361- { name : 'task_type' , component : [ 'option_select' ] , default : 'CPU' , usePair : true ,
361+ { name : 'task_type' , component : [ 'option_select' ] , type : 'text' , default : 'CPU' , usePair : true ,
362362 options : [ 'CPU' , 'GPU' ] } ,
363363 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
364364 { name : 'n_estimators' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
@@ -371,7 +371,7 @@ define([
371371 import : 'from sklearn.linear_model import LogisticRegression' ,
372372 code : 'LogisticRegression(${penalty}${C}${random_state}${etc})' ,
373373 options : [
374- { name : 'penalty' , component : [ 'option_select' ] , default : 'l2' , usePair : true , options : [ 'l1' , 'l2' , 'elasticnet' , 'none' ] } ,
374+ { name : 'penalty' , component : [ 'option_select' ] , type : 'text' , default : 'l2' , usePair : true , options : [ 'l1' , 'l2' , 'elasticnet' , 'none' ] } ,
375375 { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
376376 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
377377 ]
@@ -406,7 +406,7 @@ define([
406406 code : 'SVC(${C}${kernel}${gamma}${random_state}${etc})' ,
407407 options : [
408408 { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
409- { name : 'kernel' , component : [ 'option_select' ] , usePair : true ,
409+ { name : 'kernel' , component : [ 'option_select' ] , type : 'text' , usePair : true ,
410410 options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default : 'rbf' } ,
411411 { name : 'gamma' , component : [ 'option_suggest' ] , usePair : true ,
412412 options : [ 'scale' , 'auto' ] , default : 'scale' } ,
@@ -418,7 +418,7 @@ define([
418418 import : 'from sklearn.tree import DecisionTreeClassifier' ,
419419 code : 'DecisionTreeClassifier(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
420420 options : [
421- { name : 'criterion' , component : [ 'option_select' ] , default : 'squared_error' , type :'text' ,
421+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'squared_error' , type :'text' ,
422422 options : [ 'squared_error' , 'friedman_mse' , 'absolute_error' , 'poisson' ] , usePair : true } ,
423423 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
424424 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
@@ -431,7 +431,7 @@ define([
431431 code : 'RandomForestClassifier(${n_estimators}${criterion}${max_depth}${min_samples_split}${n_jobs}${random_state}${etc})' ,
432432 options : [
433433 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
434- { name : 'criterion' , component : [ 'option_select' ] , default : 'gini' , type :'text' , usePair : true ,
434+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'gini' , type :'text' , usePair : true ,
435435 options : [ 'gini' , 'entropy' ] } ,
436436 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
437437 { name : 'min_samples_split' , component : [ 'input_number' ] , default : 2 , usePair : true } ,
@@ -444,11 +444,11 @@ define([
444444 import : 'from sklearn.ensemble import GradientBoostingClassifier' ,
445445 code : 'GradientBoostingClassifier(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
446446 options : [
447- { name : 'loss' , component : [ 'option_select' ] , default : 'deviance' , type : 'text' , usePair : true ,
447+ { name : 'loss' , component : [ 'option_select' ] , type : 'text' , default : 'deviance' , type : 'text' , usePair : true ,
448448 options : [ 'deviance' , 'exponential' ] } ,
449449 { name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
450450 { name : 'n_estimators' , component : [ 'input_number' ] , default : 100 , usePair : true } ,
451- { name : 'criterion' , component : [ 'option_select' ] , default : 'friedman_mse' , type :'text' , usePair : true ,
451+ { name : 'criterion' , component : [ 'option_select' ] , type : 'text' , default : 'friedman_mse' , type :'text' , usePair : true ,
452452 options : [ 'friedman_mse' , 'squared_error' , 'mse' , 'mae' ] } ,
453453 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
454454 ]
@@ -472,7 +472,7 @@ define([
472472 import : 'from lightgbm import LGBMClassifier' ,
473473 code : 'LGBMClassifier(${boosting_type}${max_depth}${learning_rate}${n_estimators}${random_state}${etc})' ,
474474 options : [
475- { name : 'boosting_type' , component : [ 'option_select' ] , default : 'gbdt' , type : 'text' , usePair : true ,
475+ { name : 'boosting_type' , component : [ 'option_select' ] , type : 'text' , default : 'gbdt' , type : 'text' , usePair : true ,
476476 options : [ 'gbdt' , 'dart' , 'goss' , 'rf' ] } ,
477477 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : '-1' , usePair : true } ,
478478 { name : 'learning_rate' , component : [ 'input_number' ] , default : 0.1 , usePair : true } ,
@@ -487,9 +487,9 @@ define([
487487 code : 'CatBoostClassifier(${learning_rate}${loss_function}${task_type}${max_depth}${n_estimators}${random_state}${etc})' ,
488488 options : [
489489 { name : 'learning_rate' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
490- { name : 'loss_function' , component : [ 'option_select' ] , default : 'RMSE' , type :'text' , usePair : true ,
490+ { name : 'loss_function' , component : [ 'option_select' ] , type : 'text' , default : 'RMSE' , type :'text' , usePair : true ,
491491 options : [ 'RMSE' , 'absolute_error' , 'huber' , 'quantile' ] } ,
492- { name : 'task_type' , component : [ 'option_select' ] , default : 'CPU' , usePair : true ,
492+ { name : 'task_type' , component : [ 'option_select' ] , type : 'text' , default : 'CPU' , usePair : true ,
493493 options : [ 'CPU' , 'GPU' ] } ,
494494 { name : 'max_depth' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
495495 { name : 'n_estimators' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
0 commit comments