@@ -275,7 +275,7 @@ define([
275275code :'SVR(${C}${kernel}${gamma}${random_state}${etc})' ,
276276options :[
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 ,
279279options :[ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] } ,
280280{ name :'gamma' , component :[ 'option_suggest' ] , default :'scale' , type :'text' , usePair :true ,
281281options :[ 'scale' , 'auto' ] } ,
@@ -287,7 +287,7 @@ define([
287287import :'from sklearn.tree import DecisionTreeRegressor' ,
288288code :'DecisionTreeRegressor(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
289289options :[
290- { name :'criterion' , component :[ 'option_select' ] , default :'squared_error' , type :'text' ,
290+ { name :'criterion' , component :[ 'option_select' ] , type : 'text' , default :'squared_error' , type :'text' ,
291291options :[ '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([
300300code :'RandomForestRegressor(${n_estimators}${criterion}${max_depth}${min_samples_split}${n_jobs}${random_state}${etc})' ,
301301options :[
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 ,
304304options :[ '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([
313313import :'from sklearn.ensemble import GradientBoostingRegressor' ,
314314code :'GradientBoostingRegressor(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
315315options :[
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 ,
317317options :[ '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 ,
321321options :[ 'friedman_mse' , 'squared_error' , 'mse' , 'mae' ] } ,
322322{ name :'random_state' , component :[ 'input_number' ] , placeholder :'123' , usePair :true }
323323]
@@ -341,7 +341,7 @@ define([
341341import :'from lightgbm import LGBMRegressor' ,
342342code :'LGBMRegressor(${boosting_type}${max_depth}${learning_rate}${n_estimators}${random_state}${etc})' ,
343343options :[
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 ,
345345options :[ '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([
356356code :'CatBoostRegressor(${learning_rate}${loss_function}${task_type}${max_depth}${n_estimators}${random_state}${etc})' ,
357357options :[
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 ,
360360options :[ '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 ,
362362options :[ '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([
371371import :'from sklearn.linear_model import LogisticRegression' ,
372372code :'LogisticRegression(${penalty}${C}${random_state}${etc})' ,
373373options :[
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([
406406code :'SVC(${C}${kernel}${gamma}${random_state}${etc})' ,
407407options :[
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 ,
410410options :[ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default :'rbf' } ,
411411{ name :'gamma' , component :[ 'option_suggest' ] , usePair :true ,
412412options :[ 'scale' , 'auto' ] , default :'scale' } ,
@@ -418,7 +418,7 @@ define([
418418import :'from sklearn.tree import DecisionTreeClassifier' ,
419419code :'DecisionTreeClassifier(${criterion}${max_depth}${min_samples_split}${random_state}${etc})' ,
420420options :[
421- { name :'criterion' , component :[ 'option_select' ] , default :'squared_error' , type :'text' ,
421+ { name :'criterion' , component :[ 'option_select' ] , type : 'text' , default :'squared_error' , type :'text' ,
422422options :[ '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([
431431code :'RandomForestClassifier(${n_estimators}${criterion}${max_depth}${min_samples_split}${n_jobs}${random_state}${etc})' ,
432432options :[
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 ,
435435options :[ '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([
444444import :'from sklearn.ensemble import GradientBoostingClassifier' ,
445445code :'GradientBoostingClassifier(${loss}${learning_rate}${n_estimators}${criterion}${random_state}${etc})' ,
446446options :[
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 ,
448448options :[ '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 ,
452452options :[ 'friedman_mse' , 'squared_error' , 'mse' , 'mae' ] } ,
453453{ name :'random_state' , component :[ 'input_number' ] , placeholder :'123' , usePair :true }
454454]
@@ -472,7 +472,7 @@ define([
472472import :'from lightgbm import LGBMClassifier' ,
473473code :'LGBMClassifier(${boosting_type}${max_depth}${learning_rate}${n_estimators}${random_state}${etc})' ,
474474options :[
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 ,
476476options :[ '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([
487487code :'CatBoostClassifier(${learning_rate}${loss_function}${task_type}${max_depth}${n_estimators}${random_state}${etc})' ,
488488options :[
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 ,
491491options :[ '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 ,
493493options :[ 'CPU' , 'GPU' ] } ,
494494{ name :'max_depth' , component :[ 'input_number' ] , placeholder :'None' , usePair :true } ,
495495{ name :'n_estimators' , component :[ 'input_number' ] , placeholder :'None' , usePair :true } ,