@@ -228,6 +228,14 @@ define([
228
228
229
229
]
230
230
} ,
231
+ 'prep-poly-feat' : {
232
+ name : 'Polynomial Features' ,
233
+ import : 'from sklearn.preprocessing import PolynomialFeatures' ,
234
+ code : 'PolynomialFeatures(${etc})' ,
235
+ options : [
236
+
237
+ ]
238
+ } ,
231
239
/** Regression */
232
240
'ln-rgs' : {
233
241
name : 'LinearRegression' ,
@@ -237,6 +245,30 @@ define([
237
245
{ name : 'fit_intercept' , component : [ 'bool_select' ] , default : 'True' , usePair : true }
238
246
]
239
247
} ,
248
+ 'ridge' : {
249
+ name : 'Ridge' ,
250
+ import : 'from sklearn.linear_model import Ridge' ,
251
+ code : 'Ridge(${etc})' ,
252
+ options : [
253
+ //TODO:
254
+ ]
255
+ } ,
256
+ 'lasso' : {
257
+ name : 'Lasso' ,
258
+ import : 'from sklearn.linear_model import Lasso' ,
259
+ code : 'Lasso(${etc})' ,
260
+ options : [
261
+ //TODO:
262
+ ]
263
+ } ,
264
+ 'elasticnet' : {
265
+ name : 'ElasticNet' ,
266
+ import : 'from sklearn.linear_model import ElasticNet' ,
267
+ code : 'ElasticNet(${etc})' ,
268
+ options : [
269
+ //TODO:
270
+ ]
271
+ } ,
240
272
'sv-rgs' : {
241
273
name : 'SVR' ,
242
274
import : 'from sklearn.svm import SVR' ,
@@ -344,6 +376,30 @@ define([
344
376
{ name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
345
377
]
346
378
} ,
379
+ 'bern-nb' : {
380
+ name : 'BernoulliNB' ,
381
+ import : 'from sklearn.naive_bayes import BernoulliNB' ,
382
+ code : 'BernoulliNB(${etc})' ,
383
+ options : [
384
+ //TODO:
385
+ ]
386
+ } ,
387
+ 'mulnom-nb' : {
388
+ name : 'MultinomialNB' ,
389
+ import : 'from sklearn.naive_bayes import MultinomialNB' ,
390
+ code : 'MultinomialNB(${etc})' ,
391
+ options : [
392
+ //TODO:
393
+ ]
394
+ } ,
395
+ 'gaus-nb' : {
396
+ name : 'GaussianNB' ,
397
+ import : 'from sklearn.naive_bayes import GaussianNB' ,
398
+ code : 'GaussianNB(${etc})' ,
399
+ options : [
400
+ //TODO:
401
+ ]
402
+ } ,
347
403
'sv-clf' : {
348
404
name : 'SupportVectorClassifier' ,
349
405
import : 'from sklearn.svm import SVC' ,
@@ -524,7 +580,7 @@ define([
524
580
} ,
525
581
/** Dimension Reduction */
526
582
'pca' : {
527
- name : 'Principal Component Analysis' ,
583
+ name : 'PCA( Principal Component Analysis) ' ,
528
584
import : 'from sklearn.decomposition import PCA' ,
529
585
code : 'PCA(${n_components}${random_state}${etc})' ,
530
586
options : [
@@ -533,7 +589,7 @@ define([
533
589
]
534
590
} ,
535
591
'lda' : {
536
- name : 'Linear Discriminant Analysis' ,
592
+ name : 'LDA( Linear Discriminant Analysis) ' ,
537
593
import : 'from sklearn.discriminant_analysis import LinearDiscriminantAnalysis' ,
538
594
code : 'LinearDiscriminantAnalysis(${n_components}${etc})' ,
539
595
options : [
@@ -550,13 +606,23 @@ define([
550
606
]
551
607
} ,
552
608
'nmf' : {
553
- name : 'Non-Negative Matrix Factorization' ,
609
+ name : 'NMF( Non-Negative Matrix Factorization) ' ,
554
610
import : 'from sklearn.decomposition import NMF' ,
555
611
code : 'NMF(${n_components}${random_state}${etc})' ,
556
612
options : [
557
613
{ name : 'n_components' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
558
614
{ name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
559
615
]
616
+ } ,
617
+ 'tsne' : {
618
+ name : 'TSNE(T-distributed Stochastic Neighbor Embedding)' ,
619
+ import : 'from sklearn.manifold import TSNE' ,
620
+ code : 'TSNE(${n_components}${learning_rate}${random_state}${etc})' ,
621
+ options : [
622
+ { name : 'n_components' , component : [ 'input_number' ] , placeholder : 'None' , usePair : true } ,
623
+ { name : 'learning_rate' , component : [ 'input_number' ] , default : 200.0 , usePair : true } ,
624
+ { name : 'random_state' , component : [ 'input_number' ] , placeholder : '123' , usePair : true }
625
+ ]
560
626
}
561
627
}
562
628
0 commit comments