@@ -296,7 +296,7 @@ define([
296296 import : 'from sklearn.svm import SVR' ,
297297 code : 'SVR(${C}${kernel}${degree}${gamma}${coef0}${random_state}${etc})' ,
298298 options : [
299- { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
299+ { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true , step : 0.1 , min : 0 } ,
300300 { name : 'kernel' , component : [ 'option_select' ] , type : 'text' , usePair : true ,
301301 options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default : 'rbf' } ,
302302 { name : 'degree' , component : [ 'input_number' ] , placeholder : '3' , usePair : true } ,
@@ -396,7 +396,7 @@ define([
396396 code : 'LogisticRegression(${penalty}${C}${random_state}${etc})' ,
397397 options : [
398398 { name : 'penalty' , component : [ 'option_select' ] , type : 'text' , default : 'l2' , usePair : true , options : [ 'l1' , 'l2' , 'elasticnet' , 'none' ] } ,
399- { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
399+ { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true , step : 0.1 , min : 0 } ,
400400 { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
401401 ]
402402 } ,
@@ -429,7 +429,7 @@ define([
429429 import : 'from sklearn.svm import SVC' ,
430430 code : 'SVC(${C}${kernel}${degree}${gamma}${coef0}${random_state}${etc})' ,
431431 options : [
432- { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true } ,
432+ { name : 'C' , component : [ 'input_number' ] , placeholder : '1.0' , usePair : true , step : 0.1 , min : 0 } ,
433433 { name : 'kernel' , component : [ 'option_select' ] , type : 'text' , usePair : true ,
434434 options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default : 'rbf' } ,
435435 { name : 'degree' , component : [ 'input_number' ] , placeholder : '3' , usePair : true } ,
0 commit comments