198
198
</ form >
199
199
</ div >
200
200
< div class ="tab-pane fade " id ="svm " role ="tabpanel ">
201
- < p > Support Vector Machine</ p >
202
201
< form class ="form ">
203
202
< input type ="hidden " name ="model " value ="svm " />
203
+ < div class ="row ">
204
+ < div class ="col-md-2 ">
205
+ < div class ="form-check ">
206
+ < input class ="form-check-input " type ="radio " name ="kernel " id ="svmkernel1 " value ="linear " checked >
207
+ < label class ="form-check-label " for ="svmkernel1 ">
208
+ Linear
209
+ </ label >
210
+ </ div >
211
+ < div class ="form-check ">
212
+ < input class ="form-check-input " type ="radio " name ="kernel " id ="svmkernel2 " value ="poly ">
213
+ < label class ="form-check-label " for ="svmkernel2 ">
214
+ Polynomial
215
+ </ label >
216
+ </ div >
217
+ < div class ="form-check ">
218
+ < input class ="form-check-input " type ="radio " name ="kernel " id ="svmkernel3 " value ="rbf ">
219
+ < label class ="form-check-label " for ="svmkernel3 ">
220
+ RBF
221
+ </ label >
222
+ </ div >
223
+ < div class ="form-check ">
224
+ < input class ="form-check-input " type ="radio " name ="kernel " id ="svmkernel4 " value ="sigmoid ">
225
+ < label class ="form-check-label " for ="svmkernel4 ">
226
+ Sigmoid
227
+ </ label >
228
+ </ div >
229
+ </ div >
230
+ < div class ="col-md-3 ">
231
+ < div class ="form-group form-row mb-1 ">
232
+ < label for ="C " class ="col-form-label col-md-4 "> C</ label >
233
+ < div class ="col-md-8 ">
234
+ < input class ="form-control " type ="text " name ="C " id ="C " value ="1.0 " />
235
+ </ div >
236
+ </ div >
237
+ < div class ="form-group form-row mb-1 ">
238
+ < label for ="degree " class ="col-form-label col-md-4 "> Degree</ label >
239
+ < div class ="col-md-8 ">
240
+ < input class ="form-control " type ="number " name ="degree " id ="degree " value ="3 " min ="1 " max ="42 " step ="1 " disabled />
241
+ </ div >
242
+ </ div >
243
+ < div class ="form-group form-row mb-1 ">
244
+ < label for ="gamma " class ="col-form-label col-md-4 "> Gamma</ label >
245
+ < div class ="col-md-8 ">
246
+ < input class ="form-control " type ="text " name ="gamma " id ="gamma " value ="scale " disabled />
247
+ </ div >
248
+ </ div >
249
+ </ div >
250
+ < div class ="col-md-3 ">
251
+ < div class ="form-group form-row mb-1 ">
252
+ < label for ="coef0 " class ="col-form-label col-md-4 "> Coef0</ label >
253
+ < div class ="col-md-8 ">
254
+ < input class ="form-control " type ="text " name ="coef0 " id ="coef0 " value ="0.0 " disabled />
255
+ </ div >
256
+ </ div >
257
+ < div class ="form-group form-row mb-1 ">
258
+ < label for ="tol " class ="col-form-label col-md-4 "> Tol</ label >
259
+ < div class ="col-md-8 ">
260
+ < input class ="form-control " type ="text " name ="tol " id ="tol " value ="0.001 " />
261
+ </ div >
262
+ </ div >
263
+ < div class ="form-group form-row mb-1 ">
264
+ < label for ="max_iter " class ="col-form-label col-md-4 "> Max Iter</ label >
265
+ < div class ="col-md-8 ">
266
+ < input class ="form-control " type ="text " name ="max_iter " id ="max_iter " value ="-1 " />
267
+ </ div >
268
+ </ div >
269
+ </ div >
270
+ < div class ="col-md-4 ">
271
+ < div class ="form-group form-row mb-1 ">
272
+ < div class ="col-md-4 "> </ div >
273
+ < div class ="col-md-8 ">
274
+ < div class ="form-check ">
275
+ < input class ="form-check-input " type ="checkbox " name ="shrinking " id ="shrinking " checked >
276
+ < label class ="form-check-label " for ="shrinking "> Shrinking</ label >
277
+ </ div >
278
+ </ div >
279
+ </ div >
280
+ < div class ="form-group form-row mb-1 ">
281
+ < label for ="class_weight " class ="col-form-label col-md-4 "> Class Weight</ label >
282
+ < div class ="col-md-8 ">
283
+ < input class ="form-control " type ="text " name ="class_weight " id ="class_weight " value ="null " />
284
+ </ div >
285
+ </ div >
286
+ < div class ="form-group form-row mb-1 ">
287
+ < label for ="decision_function_shape " class ="col-form-label col-md-4 "> Decision Shape</ label >
288
+ < div class ="col-md-8 ">
289
+ < select class ="custom-select my-1 mr-sm-2 " name ="decision_function_shape " id ="decision_function_shape ">
290
+ < option value ="ovr " selected > One v. Rest</ option >
291
+ < option value ="ovo "> One v. One</ option >
292
+ </ select >
293
+ </ div >
294
+ </ div >
295
+ </ div >
296
+ </ div >
204
297
</ form >
205
298
</ div >
206
299
< div class ="tab-pane fade " id ="logit " role ="tabpanel ">
@@ -326,7 +419,7 @@ <h6>Hyperparameters</h6>
326
419
327
420
< div class ="modal fade " id ="svmInfoModal " tabindex ="-1 " role ="dialog " aria-labelledby ="svmInfoModalLabel "
328
421
aria-hidden ="true ">
329
- < div class ="modal-dialog modal-dialog-centered " role ="document ">
422
+ < div class ="modal-dialog modal-dialog-centered modal-lg " role ="document ">
330
423
< div class ="modal-content ">
331
424
< div class ="modal-header ">
332
425
< h5 class ="modal-title " id ="svmInfoModalLabel "> Support Vector Machines</ h5 >
@@ -335,7 +428,55 @@ <h5 class="modal-title" id="svmInfoModalLabel">Support Vector Machines</h5>
335
428
</ button >
336
429
</ div >
337
430
< div class ="modal-body ">
338
- < p > TODO</ p >
431
+ < p >
432
+ < a href ="https://scikit-learn.org/stable/modules/svm.html " target ="_blank ">
433
+ Support vector machines</ a > are supervised, discriminitive classifiers that learn
434
+ an optimal hyperplane that can separate and categorize data. This hyperplane
435
+ (e.g. an defined space one dimension less than the ambient space) maximizes
436
+ the distance between groups of classes by selecting support vectors from each
437
+ group (potentially with some slack) then finding the parallel hyperplane between
438
+ those vectors that is halfway between the orthogonal. To optimize support vector
439
+ discovery, the kernel functions are used to find mappings that increase the space
440
+ between points, increasing separability between classes.
441
+ </ p >
442
+ < h6 > Hyperparameters</ h6 >
443
+ < dl >
444
+ < dt > C < code > float</ code > </ dt >
445
+ < dd > Penalty parameter C of the error term.</ dd >
446
+ < dt > kernel < code > string</ code > </ dt >
447
+ < dd >
448
+ Specifies the kernel type to be used in the algorithm. It must be one of ‘linear’, ‘poly’,
449
+ ‘rbf’, ‘sigmoid’, ‘precomputed’ or a callable. If none is given, ‘rbf’ will be used. If a
450
+ callable is given it is used to pre-compute the kernel matrix from data matrices; that
451
+ matrix should be an array of shape < code > (n_samples, n_samples)</ code > .
452
+ </ dd >
453
+ < dt > degree < code > int</ code > </ dt >
454
+ < dd > Degree of the polynomial kernel function (‘poly’). Ignored by all other kernels.</ dd >
455
+ < dt > gamma < code > float</ code > </ dt >
456
+ < dd > Kernel coefficient for ‘rbf’, ‘poly’ and ‘sigmoid’.</ dd >
457
+ < dt > coef0 < code > float</ code > </ dt >
458
+ < dd > Independent term in kernel function. It is only significant in ‘poly’ and ‘sigmoid’.</ dd >
459
+ < dt > shrinking < code > boolean</ code > </ dt >
460
+ < dd > Whether to use the shrinking heuristic.</ dd >
461
+ < dt > tol < code > float</ code > </ dt >
462
+ < dd > Tolerance for stopping criterion.</ dd >
463
+ < dt > class_weight < code > {dict, 'balanced'}</ code > </ dt >
464
+ < dd >
465
+ Set the parameter C of class i to class_weight[i]*C for SVC. If not given, all classes are
466
+ supposed to have weight one. The “balanced” mode uses the values of y to automatically adjust
467
+ weights inversely proportional to class frequencies in the input data as
468
+ < code > n_samples / (n_classes * np.bincount(y))</ code >
469
+ </ dd >
470
+ < dt > max_iter < code > int</ code > </ dt >
471
+ < dd > Hard limit on iterations within solver, or -1 for no limit.</ dd >
472
+ < dt > decision_function_shape < code > {‘ovo’, ‘ovr’}</ code > </ dt >
473
+ < dd >
474
+ Whether to return a one-vs-rest (‘ovr’) decision function of shape < code > (n_samples, n_classes)</ code >
475
+ as all other classifiers, or the original one-vs-one (‘ovo’) decision function of libsvm which has shape
476
+ < code > (n_samples, n_classes * (n_classes - 1) / 2)</ code > . However, one-vs-one (‘ovo’) is always used
477
+ as multi-class strategy.
478
+ </ dd >
479
+ </ dl >
339
480
</ div >
340
481
< div class ="modal-footer ">
341
482
< button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> Close</ button >
@@ -346,7 +487,7 @@ <h5 class="modal-title" id="svmInfoModalLabel">Support Vector Machines</h5>
346
487
347
488
< div class ="modal fade " id ="logitInfoModal " tabindex ="-1 " role ="dialog " aria-labelledby ="logitInfoModalLabel "
348
489
aria-hidden ="true ">
349
- < div class ="modal-dialog modal-dialog-centered " role ="document ">
490
+ < div class ="modal-dialog modal-dialog-centered modal-lg " role ="document ">
350
491
< div class ="modal-content ">
351
492
< div class ="modal-header ">
352
493
< h5 class ="modal-title " id ="logitInfoModalLabel "> Logistic Regression</ h5 >
@@ -356,6 +497,12 @@ <h5 class="modal-title" id="logitInfoModalLabel">Logistic Regression</h5>
356
497
</ div >
357
498
< div class ="modal-body ">
358
499
< p > TODO</ p >
500
+
501
+ < h6 > Hyperparameters</ h6 >
502
+ < dl >
503
+ < dt > param < code > type</ code > </ dt >
504
+ < dd > description</ dd >
505
+ </ dl >
359
506
</ div >
360
507
< div class ="modal-footer ">
361
508
< button type ="button " class ="btn btn-secondary " data-dismiss ="modal "> Close</ button >
0 commit comments