@@ -296,7 +296,7 @@ define([
296
296
import : 'from sklearn.svm import SVR' ,
297
297
code : 'SVR(${C}${kernel}${degree}${gamma}${coef0}${random_state}${etc})' ,
298
298
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 } ,
300
300
{ name : 'kernel' , component : [ 'option_select' ] , type : 'text' , usePair : true ,
301
301
options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default : 'rbf' } ,
302
302
{ name : 'degree' , component : [ 'input_number' ] , placeholder : '3' , usePair : true } ,
@@ -396,7 +396,7 @@ define([
396
396
code : 'LogisticRegression(${penalty}${C}${random_state}${etc})' ,
397
397
options : [
398
398
{ 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 } ,
400
400
{ name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
401
401
]
402
402
} ,
@@ -429,7 +429,7 @@ define([
429
429
import : 'from sklearn.svm import SVC' ,
430
430
code : 'SVC(${C}${kernel}${degree}${gamma}${coef0}${random_state}${etc})' ,
431
431
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 } ,
433
433
{ name : 'kernel' , component : [ 'option_select' ] , type : 'text' , usePair : true ,
434
434
options : [ 'linear' , 'poly' , 'rbf' , 'sigmoid' , 'precomputed' ] , default : 'rbf' } ,
435
435
{ name : 'degree' , component : [ 'input_number' ] , placeholder : '3' , usePair : true } ,
0 commit comments