Repository navigation
Expand file tree
/
Copy path4.2.03_paramtemp_classification_algorithm.html
More file actions
866 lines (707 loc) · 53.9 KB
/
Copy path4.2.03_paramtemp_classification_algorithm.html
File metadata and controls
866 lines (707 loc) · 53.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Classification algorithm — NeuroMiner Manual</title>
<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
</script>
<!-- Loaded before other Sphinx assets -->
<link href="_static/styles/theme.css?digest=e353d410970836974a52" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=e353d410970836974a52" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=e353d410970836974a52" rel="stylesheet" />
<link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=e353d410970836974a52" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" href="_static/styles/sphinx-book-theme.css?digest=14f4ca6b54d191a8c7657f6c759bf11a5fb86285" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.4045f2051d55cab465a707391d5b2007.min.css" />
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=e353d410970836974a52" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script>
<script src="_static/scripts/sphinx-book-theme.js?digest=5a5c038af52cf7bc1a1ec88eea08e6366ee68824"></script>
<script>let toggleHintShow = 'Click to show';</script>
<script>let toggleHintHide = 'Click to hide';</script>
<script>let toggleOpenOnPrint = 'true';</script>
<script src="_static/togglebutton.js"></script>
<script>var togglebuttonSelector = '.toggle, .admonition.dropdown';</script>
<script src="_static/design-tabs.js"></script>
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-1F3TPH8HH8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-1F3TPH8HH8');
</script>
<script>const THEBE_JS_URL = "https://unpkg.com/thebe@0.8.2/lib/index.js"
const thebe_selector = ".thebe,.cell"
const thebe_selector_input = "pre"
const thebe_selector_output = ".output, .cell_output"
</script>
<script async="async" src="_static/sphinx-thebe.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = '4.2.03_paramtemp_classification_algorithm';</script>
<link rel="canonical" href="https://neurominer-git.github.io/NeuroMiner_1.2/4.2.03_paramtemp_classification_algorithm.html" />
<link rel="shortcut icon" href="_static/nm_logo2.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Learning algorithm parameters" href="4.2.04_paramtemp_learning_algorithm_parameters.html" />
<link rel="prev" title="Preprocessing pipeline" href="4.2.02_paramtemp_preprocessing_pipeline.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
</head>
<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
<a class="skip-link" href="#main-content">Skip to main content</a>
<input type="checkbox"
class="sidebar-toggle"
name="__primary"
id="__primary"/>
<label class="overlay overlay-primary" for="__primary"></label>
<input type="checkbox"
class="sidebar-toggle"
name="__secondary"
id="__secondary"/>
<label class="overlay overlay-secondary" for="__secondary"></label>
<div class="search-button__wrapper">
<div class="search-button__overlay"></div>
<div class="search-button__search-container">
<form class="bd-search d-flex align-items-center"
action="search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
id="search-input"
placeholder="Search this book..."
aria-label="Search this book..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
</div>
<nav class="bd-header navbar navbar-expand-lg bd-navbar">
</nav>
<div class="bd-container">
<div class="bd-container__inner bd-page-width">
<div class="bd-sidebar-primary bd-sidebar">
<div class="sidebar-header-items sidebar-primary__section">
</div>
<div class="sidebar-primary-items__start sidebar-primary__section">
<div class="sidebar-primary-item">
<a class="navbar-brand logo" href="intro.html">
<img src="_static/nm_logo.png" class="logo__image only-light" alt="Logo image"/>
<script>document.write(`<img src="_static/nm_logo.png" class="logo__image only-dark" alt="Logo image"/>`);</script>
</a></div>
<div class="sidebar-primary-item"><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
<div class="bd-toc-item navbar-nav active">
<ul class="nav bd-sidenav bd-sidenav__home-link">
<li class="toctree-l1">
<a class="reference internal" href="intro.html">
NeuroMiner
</a>
</li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">News</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="5.00_1.2_release_notes.html">NeuroMiner 1.3 (09/2024)</a></li>
<li class="toctree-l1"><a class="reference internal" href="0.1_2024_MLSchool.html">Online Machine Learning School 2024</a></li>
<li class="toctree-l1"><a class="reference internal" href="0.1_2023_MLSchool.html">Online Machine Learning School 2023 - Europe</a></li>
<li class="toctree-l1"><a class="reference internal" href="0.1_2023_MLSchool_AsiaPacific.html">Online Machine Learning School 2023 - Asia-Pacific</a></li>
<li class="toctree-l1"><a class="reference internal" href="0.0_previous_MLSchool.html">Past Schools</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Getting started</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1 has-children"><a class="reference internal" href="1.0_introduction.html">Introduction</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="license.html">License</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="2.0_prerequisites.html">Suggested Prerequisites</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="3.0_gettingstarted.html">Installation & Configuration</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="3.0.00_macos_users.html">Setting up NeuroMiner on macOS</a></li>
<li class="toctree-l2"><a class="reference internal" href="3.0.01_python_matlab.html">Python integration in MATLAB</a></li>
</ul>
</li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">NeuroMiner interface</span></p>
<ul class="current nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="4.0_mainmenu.html">Main interface overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.1_mainmenu_input_data.html">Data entry in NeuroMiner</a></li>
<li class="toctree-l1 current active has-children"><a class="reference internal" href="4.2_mainmenu_define_parameter_template.html">Define parameter template</a><input checked="" class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-3"><i class="fa-solid fa-chevron-down"></i></label><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="4.2.00_paramtemp_data_fusion.html">Data Fusion</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.01_paramtemp_cv_settings.html">Cross-validation settings</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.02_paramtemp_preprocessing_pipeline.html">Preprocessing pipeline</a></li>
<li class="toctree-l2 current active"><a class="current reference internal" href="#">Classification algorithm</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.04_paramtemp_learning_algorithm_parameters.html">Learning algorithm parameters</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.05_paramtemp_ensemble_generation_strategies.html">Ensemble generation strategies</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.06_paramtemp_visualization_options.html">Visualization options</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.07_paramtemp_interpretation_options.html">Prediction interpretation options</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.08_paramtemp_model_saving_options.html">Model saving options</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.09_paramtemp_define_verbosity_level.html">Define verbosity level</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.10_paramtemp_inspect_workspace.html">Inspect workspace</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.11_paramtemp_save_parameter_template.html">Save parameter template</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.12_paramtemp_load_training_template.html">Load training template</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.13_paramtemp_multigroup.html">Multi-group analyses</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.14_paramtemp_stacking.html">Stacking</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.15_paramtemp_different_label.html">Use different label</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.2.16_paramtemp_synthetic_data.html">Synthetic data</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="4.3_mainmenu_initialize_delete_analyses.html">Initialize analyses</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.4_mainmenu_preprocess_features.html">Preprocess features</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.5_mainmenu_train_supervised_classifiers.html">Train supervised classifiers</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.6_mainmenu_visualize_classifiers.html">Visualize classifiers</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.14_mainmenu_interprete_classifiers.html">Interprete predictions</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="4.7_mainmenu_display_training_results.html">Result Viewer</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-4"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="4.7.01_mainmenu_display_visualization_results.html">Visualization results</a></li>
<li class="toctree-l2"><a class="reference internal" href="4.7.02_mainmenu_display_interpretation_results.html">ML Interpreter (MLI) results</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="4.8_mainmenu_OOCV_analysis.html">Out of Sample Cross-Validation</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.15_mainmenu_export_model.html">Export model parameters</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.9_mainmenu_load_struct.html">Load NeuroMiner structure</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.10_mainmenu_save_struct.html">Save NeuroMiner structure</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.11_mainmenu_change_wd.html">Change working directory</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.12_mainmenu_estimate_sample_size.html">Estimate sample size (simulation tool)</a></li>
<li class="toctree-l1"><a class="reference internal" href="4.13_mainmenu_utilities.html">Utilities</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Parallelization</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="5.01_NM_compilation.html">Parallelization on HPC server - NeuroMiner compilation</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Examples</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="5.02_NM_tutorial.html">NeuroMiner tutorial</a></li>
</ul>
</div>
</nav></div>
</div>
<div class="sidebar-primary-items__end sidebar-primary__section">
</div>
<div id="rtd-footer-container"></div>
</div>
<main id="main-content" class="bd-main">
<div class="sbt-scroll-pixel-helper"></div>
<div class="bd-content">
<div class="bd-article-container">
<div class="bd-header-article">
<div class="header-article-items header-article__inner">
<div class="header-article-items__start">
<div class="header-article-item"><label class="sidebar-toggle primary-toggle btn btn-sm" for="__primary" title="Toggle primary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="fa-solid fa-bars"></span>
</label></div>
</div>
<div class="header-article-items__end">
<div class="header-article-item">
<div class="article-header-buttons">
<div class="dropdown dropdown-source-buttons">
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
<i class="fab fa-github"></i>
</button>
<ul class="dropdown-menu">
<li><a href="https://github.com/neurominer-git/NeuroMiner_1.3" target="_blank"
class="btn btn-sm btn-source-repository-button dropdown-item"
title="Source repository"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fab fa-github"></i>
</span>
<span class="btn__text-container">Repository</span>
</a>
</li>
<li><a href="https://github.com/neurominer-git/NeuroMiner_1.3/issues/new?title=Issue%20on%20page%20%2F4.2.03_paramtemp_classification_algorithm.html&body=Your%20issue%20content%20here." target="_blank"
class="btn btn-sm btn-source-issues-button dropdown-item"
title="Open an issue"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-lightbulb"></i>
</span>
<span class="btn__text-container">Open issue</span>
</a>
</li>
</ul>
</div>
<div class="dropdown dropdown-download-buttons">
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Download this page">
<i class="fas fa-download"></i>
</button>
<ul class="dropdown-menu">
<li><a href="_sources/4.2.03_paramtemp_classification_algorithm.md" target="_blank"
class="btn btn-sm btn-download-source-button dropdown-item"
title="Download source file"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-file"></i>
</span>
<span class="btn__text-container">.md</span>
</a>
</li>
<li>
<button onclick="window.print()"
class="btn btn-sm btn-download-pdf-button dropdown-item"
title="Print to PDF"
data-bs-placement="left" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-file-pdf"></i>
</span>
<span class="btn__text-container">.pdf</span>
</button>
</li>
</ul>
</div>
<button onclick="toggleFullScreen()"
class="btn btn-sm btn-fullscreen-button"
title="Fullscreen mode"
data-bs-placement="bottom" data-bs-toggle="tooltip"
>
<span class="btn__icon-container">
<i class="fas fa-expand"></i>
</span>
</button>
<script>
document.write(`
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
<span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
<span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
</button>
`);
</script>
<script>
document.write(`
<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
`);
</script>
<label class="sidebar-toggle secondary-toggle btn btn-sm" for="__secondary"title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
<span class="fa-solid fa-list"></span>
</label>
</div></div>
</div>
</div>
</div>
<div id="jb-print-docs-body" class="onlyprint">
<h1>Classification algorithm</h1>
<!-- Table of contents -->
<div id="print-main-content">
<div id="jb-print-toc">
<div>
<h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#classification-mode">Classification mode</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#define-prediction-performance-criterion">Define prediction performance criterion</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#configure-learning-algorithm">Configure learning algorithm</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#svm-options">SVM options</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#define-kernel-type">Define kernel type</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#regression-mode">Regression mode</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">Define prediction performance criterion</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#select-learning-algorithm">Select learning algorithm</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id2">Define kernel type</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#optimize-decision-threshold-based-on-roc-expert-mode">Optimize decision threshold based on ROC (expert mode)</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#sequence-optimization">Sequence Optimization</a><ul class="nav section-nav flex-column">
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-the-population-the-deferral-optimization-will-be-based-on">1 | Define the population the deferral optimization will be based on</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-how-to-combine-sequential-predictions">2 | Define how to combine sequential predictions</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-how-the-deferral-window-is-anchored">3 | Define how the deferral window is anchored</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-optimization-criterion-for-deferral-learning">4 | Define optimization criterion for deferral learning</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#sequences-to-be-tested">5 | Sequences to be tested</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div id="searchbox"></div>
<article class="bd-article" role="main">
<div class="tex2jax_ignore mathjax_ignore section" id="classification-algorithm">
<span id="paramtemp-classification-algorithm"></span><h1>Classification algorithm<a class="headerlink" href="#classification-algorithm" title="Permalink to this heading">#</a></h1>
<p>Support Vector Machine algorithms are the base of the evaluation core of NeuroMiner. However, a variety of other methods such as k-Nearest Neighbors and Random Forests are also available. In this distribution we rely on the <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/libsvm/">LIBSVM</a> / <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/liblinear/">LIBLINEAR</a> toolboxes for the implementation of support vector based classifiers and regressors. <a class="reference external" href="https://www.cs.ubc.ca/~schmidtm/Software/matLearn.html">matLearn</a> is also now introduced and requires the Statistics and Optimization Toolbox.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Furthermore, starting with NM 1.1 the MATLAB-Python interface has been implemented and several algorithms from the Scikit-Learn library have been integrated into NM, such as Random Forest and Gradient Boosting. Please see <a class="reference internal" href="3.0_gettingstarted.html#start"><span class="std std-ref">how to install Python for Matlab/NM</span></a>.</p>
</div>
<p>The NeuroMiner interface will change according to the evaluation type selected during data import. Two operation modes are implemented: Classification and Regression. The following will refer to each of these separately.</p>
<div class="section" id="classification-mode">
<h2>Classification mode<a class="headerlink" href="#classification-mode" title="Permalink to this heading">#</a></h2>
<p>In this section we will describe the set up of <strong>Classifiers</strong> in
Neurominer.</p>
<div class="section" id="define-prediction-performance-criterion">
<h3>Define prediction performance criterion<a class="headerlink" href="#define-prediction-performance-criterion" title="Permalink to this heading">#</a></h3>
<p>During machine learning, models will be optimized and evaluated based on a criterion. For classification problems NeuroMiner provides the following performance measures:</p>
<div class="figure align-default" id="fig-3-2-03-nm-classific-metrics">
<img alt="neurominer preprocessing pruning" src="_images/NM_classific_metrics.png" />
</div>
<div class="admonition-performance-measures admonition">
<p class="admonition-title">Performance measures</p>
<ol class="arabic simple">
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Accuracy_and_precision">Accuracy (ACC)</a>: ACC = sum(E =P)*100/N</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Sensitivity_and_specificity">True Positive Rate</a>: e.g. for one-class SVM: Sensitivity = TP/(TP+FN)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/False_positive_rate">False Positive Rate</a>: e.g. for one-class SVM: False Positive Rate = FP/(FP+TP)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Positive_and_negative_predictive_values">Positive Predictive Value (PPV)</a>: e.g. for one class SVM: PPV = TP/(TP+FP)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Matthews_correlation_coefficient">Matthews Correlation Coefficient (MCC)</a>:
MCC = (TP * TN-FP * FN) / sqrt((TP+FP) * (TP+FN) * (TN+FP) * (TN+FN))</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Receiver_operating_characteristic">Area-Under-the-Curve (AUC)</a>: Receiver Operator Characteristic (ROC)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Geometric_mean">Geometric Mean</a>: Geometric Mean = sqrt(PPV*True Positive Rate)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/Accuracy_and_precision#In_binary_classification">Balanced Accuracy (BAC)</a>: BAC = (sensitivity+specificity) / 2)</p></li>
<li><p>[Enhanced Balanced Accuracy]: Enhanced BAC = (sensitivity*specificity)/100)</p></li>
<li><p><a class="reference external" href="https://en.wikipedia.org/wiki/F1_score">F-score</a>: F-score = (1+beta2)<em>precision</em>recall / (beta2*(precision+recall)) * 100</p></li>
<li><p>Prognostic Summary Index: PPV+NPV-100</p></li>
<li><p>Number Needed to Predict: 1/PPV</p></li>
<li><p>Expected Calibration Error (<a class="reference external" href="https://jamesmccaffrey.wordpress.com/2021/01/22/how-to-calculate-expected-calibration-error-for-multi-class-classification/">ECE</a>)</p></li>
</ol>
<p><em>Notes: E: expected, P: predicted, TP: true positive, TN: true negative, FP: false positive, FN: false negative, PPV: positive predictive value, NPV: negative predictive value, ROC: Receiver Operator Characteristic.</em></p>
</div>
<p>Each of these performance measures can have an effect on the resulting model and is dependent on the analysis that is being conducted. For example, simple accuracy is useful when it does not matter if sensitivity and specificity needs to be balanced (e.g., if sensitivity could be very high and specificity very low). However, if there are unequal sample sizes then this can lead to very unbalanced sensitivity and specificity that is an artifact of sample size, which can be corrected by using balanced accuracy (BAC).</p>
</div>
<div class="section" id="configure-learning-algorithm">
<h3>Configure learning algorithm<a class="headerlink" href="#configure-learning-algorithm" title="Permalink to this heading">#</a></h3>
<p>There are different learning algorithms implemented in NeuroMiner that can be used for classification analyses. Each algorithm has a particular set of parameters that are described in the respective distributions. In general defaults are provided.</p>
<div class="figure align-default" id="fig-3-2-03-nm-classific-methods">
<img alt="neurominer classification methods" src="_images/NM_classific_methods.png" />
</div>
<div class="admonition-classification-algorithms admonition">
<p class="admonition-title">Classification algorithms</p>
<ol class="arabic simple">
<li><p>SVM - <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/libsvm/">LIBSVM</a></p></li>
<li><p>SVM/LR - <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/liblinear/">LIBLINEAR</a></p></li>
<li><p>SVEN - Support Vector Elastic Net</p></li>
<li><p>LOCAL LEARNING - fuzzy k-Nearest Neighbors (<a class="reference external" href="https://de.mathworks.com/matlabcentral/fileexchange/13358-fuzzy-knn">kNN</a>
)</p></li>
<li><p>RVM / BAYES - Relevance vector classification ((<a class="github reference external" href="https://github.com/ipsorakis/mRVMs">ipsorakis/mRVMs</a>))</p></li>
<li><p>UNIVARIATE - GLM Logistic Regression (<a class="reference external" href="https://de.mathworks.com/help/stats/glmfit.html">MATLAB glmfit</a>)</p></li>
<li><p>DECISION TREE - <a class="reference external" href="http://de.mathworks.com/help/stats/classification-trees-and-regression-trees.html">MATLAB Statistics Toolbox implementation of the Decision Tree algorithm</a></p></li>
<li><p>RANDOM FOREST - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html">Python sklearn.ensemble.RandomForestClassifier algorithm</a></p></li>
<li><p>matLearn - <a class="reference external" href="https://www.cs.ubc.ca/~schmidtm/Software/matLearn.html">Mark Schmidt’s matLearn library</a></p></li>
<li><p>GLMNET - <a class="reference external" href="https://web.stanford.edu/~hastie/glmnet/glmnet_alpha.html">Hastie’s library for LASSO/Elastic-net regularized GLM</a>(This only works when users have the Statistics and Optimization
Toolbox)</p></li>
<li><p>GRADIENT BOOST - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingClassifier.html">Python.sklearn.ensemble.GradientBoostingClassifier</a></p></li>
<li><p>ML PERCEPTRON - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html">Python’s sklearn.neural_network.MLPClassifier algorithm</a></p></li>
</ol>
</div>
<p>Once one of these option is selected, you will have to define a number
of other settings that are specific to the algorithm and can be found in
the respective references above. In the following, we present the
options that are available for SVM.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>When NeuroMiner is opened in expert mode (i.e. by “nm expert”) some additional classification algorithms are available:</p>
<ul class="simple">
<li><p>NEURAL -<a class="reference external" href="https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.298.1213&rep=rep1&type=pdf"> Extreme Learning Machine</a> (you have to scale data to -1/1 and
prune low-var or NaN vectors)</p></li>
<li><p>RVM / BAYES - <a class="reference external" href="https://github.com/ipsorakis/mRVMs">Psorakis & Damoulas’s implementation with Multiple Kernel
Learning</a></p></li>
<li><p>RVM / BAYES - <a class="reference external" href="http://www.miketipping.com/sparsebayes.htm">Bayesian Sparse Logistic Regression</a>(for classification in high-D
spaces)</p></li>
<li><p>LOCAL LEARNING - <a class="reference external" href="https://dl.acm.org/doi/abs/10.1016/j.compbiolchem.2019.03.017">IMRelief</a></p></li>
</ul>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The GLMNET package is included in NeuroMiner as a Matlab MEX function compiled from the original FORTRAN source files. Its compatibility depends on both the operating system and the Matlab version, and it may encounter issues on different OS configurations. If the precompiled versions provided in the NeuroMiner release (located at NeuroMiner/trainpredict/glmnet) produce errors, users may need to recompile the library. Follow this <a class="reference external" href="https://hastie.su.domains/glmnet_matlab">guide</a> for instructions on how to do so. In the next release, we plan to implement the sklearn GLMNET implementations.</p>
</div>
</div>
<div class="section" id="svm-options">
<h3>SVM options<a class="headerlink" href="#svm-options" title="Permalink to this heading">#</a></h3>
<p>These options depend on the algorithm. For example, the following options will appear when SVM is selected:</p>
<div class="figure align-default" id="fig-3-2-03-nm-svm-methods">
<img alt="neurominer svm methods" src="_images/NM_svm_methods.png" />
</div>
<p><strong>7 | Weight the hyperplane for uneven group sizes</strong></p>
<p>Each of the first 6 options are standard options within the <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/libsvm/">LIBSVM
toolbox</a>. However, NeuroMiner also offers hyperplane weighting in uneven group sizes. This is an important option because SVM work effectively when samples are balanced across classes but suboptimal results can emerge when there are unequal class proportions; i.e., the hyperplane can be biased towards a correct classification of the majority class, and thus result in poor classification performance in the minority class. This is called an imbalanced learning problem. To account for this problem a class-weighted SVM can be used. Rather than having equal misclassification penalties (C values) for all individuals this approach corrects for imbalanced learning by increasing the misclassification penalty in the minority class. Specifically, the C parameter for each class is multiplied by the inverse ratio of the training class sizes. To optimize the search for optimal class weights, you can also introduce an additional hyperparameter that multiplies the inverse ratio by a scaling factor for each class prior to the multiplication of the C parameter.</p>
<p>This can be defined when the <a class="reference internal" href="4.2.04_paramtemp_learning_algorithm_parameters.html#learning-algorithm-parameters"><span class="std std-ref">learning
algorithm parameters settings</span></a>. Similarly, option 8 allows you to weight the hyperplane based on a vector of weighting parameters that you have defined. This will work similarly to the above, but it will use the parameters entered rather than the group sizes.</p>
<p>Once these options are selected, NeuroMiner will return to the previous menu where you can also define the kernel type.</p>
</div>
<div class="section" id="define-kernel-type">
<h3>Define kernel type<a class="headerlink" href="#define-kernel-type" title="Permalink to this heading">#</a></h3>
<p>Define whether the algorithm will use a linear or non-linear kernel
<a class="reference external" href="https://en.wikipedia.org/wiki/Support_vector_machine#Nonlinear_classification">Kernel</a>.
This will display the following options:</p>
<blockquote>
<div><p>1 | Linear</p>
<p>2 | Polynomial</p>
<p>3 | RBF (Gaussian)</p>
<p>4 | Sigmoid</p>
</div></blockquote>
<p>Once these settings are defined, you will be directed back to the main menu for this section and you can proceed to the main parameter menu where you can configure the <a class="reference internal" href="4.2.04_paramtemp_learning_algorithm_parameters.html#learning-algorithm-parameters"><span class="std std-ref">learning algorithm</span></a>).</p>
</div>
<hr class="docutils" />
<div class="section" id="regression-mode">
<h3>Regression mode<a class="headerlink" href="#regression-mode" title="Permalink to this heading">#</a></h3>
<p>If you have defined a regression framework during <a class="reference internal" href="4.1_mainmenu_input_data.html#input-data"><span class="std std-ref">data input</span></a> then a different menu will appear
as follows.</p>
<div class="figure align-default" id="fig-3-2-03-nm-regression-mode">
<img alt="neurominer regression mode" src="_images/NM_regression_mode.png" />
</div>
</div>
<div class="section" id="id1">
<h3>Define prediction performance criterion<a class="headerlink" href="#id1" title="Permalink to this heading">#</a></h3>
<p>Performance criteria play a major roles in model evaluation and
optimization, for regression NM provides 5 performances measures:</p>
<div class="figure align-default" id="fig-3-2-03-nm-regression-perf-metrics">
<img alt="neurominer regression performance measures" src="_images/NM_regression_perf_metrics.png" />
</div>
<div class="admonition-performance-measures-in-regression admonition">
<p class="admonition-title">Performance measures in regression</p>
<ol class="arabic simple">
<li><p>Mean Squared Error
<a class="reference external" href="https://en.wikipedia.org/wiki/Mean_squared_error">MSE</a></p></li>
<li><p>Normalized Root of Mean Squared Deviation
<a class="reference external" href="https://en.wikipedia.org/wiki/Root-mean-square_deviation#Normalized_root-mean-square_deviation">NRMSD</a></p></li>
<li><p>Squared Correlation Coefficient
<a class="reference external" href="https://en.wikipedia.org/wiki/Coefficient_of_determination#As_squared_correlation_coefficient">R^2^</a></p></li>
<li><p>Correlation Coefficient
<a class="reference external" href="https://en.wikipedia.org/wiki/Correlation_coefficient">CC</a></p></li>
<li><p>Mean Average Error
<a class="reference external" href="https://en.wikipedia.org/wiki/Mean_absolute_error">MAERR</a></p></li>
</ol>
</div>
</div>
<div class="section" id="select-learning-algorithm">
<h3>Select learning algorithm<a class="headerlink" href="#select-learning-algorithm" title="Permalink to this heading">#</a></h3>
<p>Learning algorithm to be used for the <strong>regression</strong> analysis. Each
algorithm has a particular set of parameters that are described in the
respective distributions. In general defaults are provided.</p>
<div class="figure align-default" id="fig-3-2-03-nm-regression-methods">
<img alt="neurominer regression methods" src="_images/NM_regression_methods.png" />
</div>
<div class="admonition-regression-learning-algorithms admonition">
<p class="admonition-title">Regression learning algorithms</p>
<ol class="arabic simple">
<li><p>SVM - <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/libsvm/">LIBSVM</a></p></li>
<li><p>SVM - <a class="reference external" href="https://www.csie.ntu.edu.tw/~cjlin/liblinear/">LIBLINEAR</a></p></li>
<li><p>RVM / BAYES - <a class="reference external" href="http://www.miketipping.com/sparsebayes.htm">Mike Tipping’s
implementation</a></p></li>
<li><p>Multinomial relevance vector regression (MVRVR) (for multiple target
label prediction)</p></li>
<li><p>Univariate - GLM Linear Regression</p></li>
<li><p>RANDOM FOREST - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html">Python sklearn.ensemble.RandomForestRegressor algorithm</a></p></li>
<li><p>matLearn - <a class="reference external" href="https://www.cs.ubc.ca/~schmidtm/Software/matLearn.html">Mark Schmidt’s matLearn library</a></p></li>
<li><p>GLMNET - <a class="reference external" href="https://web.stanford.edu/~hastie/glmnet/glmnet_alpha.html">Hastie’s library for LASSO/Elastic-net regularized GLM</a>(This only works when users have the Statistics and Optimization
Toolbox)</p></li>
<li><p>GRADIENT BOOST - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingRegressor.html">Python.sklearn.ensemble.GradientBoostingRegressor</a></p></li>
<li><p>ML PERCEPTRON - <a class="reference external" href="https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPRegressor.html">Python’s sklearn.neural_network.MLPRegressor algorithm</a></p></li>
</ol>
</div>
</div>
<div class="section" id="id2">
<h3>Define kernel type<a class="headerlink" href="#id2" title="Permalink to this heading">#</a></h3>
<p>Kernel to be used in the selected <strong>regressor</strong> (when applicable).</p>
<blockquote>
<div><ol class="arabic simple">
<li><p>Linear</p></li>
<li><p>Polynomial</p></li>
<li><p>RBF (Gaussian)</p></li>
<li><p>Sigmoid</p></li>
</ol>
</div></blockquote>
</div>
<hr class="docutils" />
<div class="section" id="optimize-decision-threshold-based-on-roc-expert-mode">
<h3>Optimize decision threshold based on ROC (expert mode)<a class="headerlink" href="#optimize-decision-threshold-based-on-roc-expert-mode" title="Permalink to this heading">#</a></h3>
<p>If you’ve opened NM in expert mode (by calling “nm expert” instead of “nm”), you will have this option (5) in your model setup menu:</p>
<div class="figure align-default" id="fig-3-2-03-nm-classific-menu-expert">
<img alt="neurominer classifier menu in expert mode" src="_images/NM_model_menu_expert.png" />
</div>
<p>It allows optimizing the decision scores according to the Receiver Operator Function. The default setting enables the post-hoc optimization using ROC analysis of C1 test data.</p>
</div>
<div class="section" id="sequence-optimization">
<h3>Sequence Optimization<a class="headerlink" href="#sequence-optimization" title="Permalink to this heading">#</a></h3>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>You need to enter NeuroMiner in EXPERT mode for this (i.e., load NeuroMiner with the command ”nm nosplash expert” or “nm expert”).</p>
</div>
<p>When in the NeuroMiner ”expert” mode, another option in the ”model algorithm” menu is to conduct sequence optimization. This option was designed to simulate the clinical decision making associated with additional testing. In a clinical environment, the decision to conduct another assessment on an individual is normally done in situations of uncertainty to confirm a diagnosis – e.g., coronavirus is suspected based on a clinical assessment and then a nasal swab is conducted to confirm this diagnosis. In a machine learning context, uncertainty can be quantified with either the distance from the decision boundary in the case of an SVM (i.e., with cases closer to the decision line being the most uncertain) or with a median using any other scores.</p>
<p>NeuroMiner is able to test sequences of assessments (e.g., clinical, cognitive, imaging) based on the modalities entered during data entry or it is able to build optimal sequences based on different models (e.g., linear and non-linear SVM). The pipelines need to have been analyzed before sequencing can be activated. The procedure is to:</p>
<ol class="arabic simple">
<li><p>Process multiple analyses as usual from different modalities or using different settings</p></li>
<li><p>In the ”Parameter Template” menu, activate the option to 1: Define meta learning/stacking options</p></li>
<li><p>Select the analyses that you want to define the optimal sequence for (i.e., in the option “2 | Select 1st-level analyses to provide features to stacker” introduce the indexes of 2 or more analyses you want to stack)</p></li>
<li><p>Go to the preprocessing parameters and change the set-up so that there is only an imputation step. If you are sequentially stacking different learning algorithms, then scaling may be required and this needs to be considered</p></li>
<li><p>In the ”Parameter Template” menu, go to the ”Classification Algorithm” option and then the ”Select learning algorithm” option</p></li>
<li><p>Select the item ”SEQOPT → Predictive sequence optimization algorithm (Stacking only)”</p></li>
<li><p>To configure the sequence algorithm, select the option to ”Configure Sequence Optimizer”</p></li>
</ol>
<p>You will then see this menu:</p>
<div class="figure align-default" id="fig-nm-seqopt-menu">
<img alt="neurominer sequential optimizer menu options" src="_images/NM_SEQOPT_menu.png" />
</div>
<div class="section" id="define-the-population-the-deferral-optimization-will-be-based-on">
<h4>1 | Define the population the deferral optimization will be based on<a class="headerlink" href="#define-the-population-the-deferral-optimization-will-be-based-on" title="Permalink to this heading">#</a></h4>
<blockquote>
<div><p>1 | The population to be propagated</p>
<p>2 | The entire population</p>
</div></blockquote>
<p>NeuroMiner will attempt to optimize two factors: 1) the criterion that the user decides in the previous step (e.g., BAC); 2) the least number of assessments necessary. These optimizations can be for only the cases that have uncertain decision or probability scores (option 1) or for the entire population.</p>
</div>
<div class="section" id="define-how-to-combine-sequential-predictions">
<h4>2 | Define how to combine sequential predictions<a class="headerlink" href="#define-how-to-combine-sequential-predictions" title="Permalink to this heading">#</a></h4>
<blockquote>
<div><p>1 | Sequential</p>
<p>2 | Integrative</p>
</div></blockquote>
<p>This option defines the computation mode for combining sequential predictions. When a case is deferred to another model because the first prediction was uncertain, then either its former decision score can be replace with latter predictions in the sequence (“Sequential” computation) or a mean across the predictions in the sequence can be computed (“Integrative” computation, i.e., this becomes bagging or ”late fusion” in NeuroMiner terminology).</p>
</div>
<div class="section" id="define-how-the-deferral-window-is-anchored">
<h4>3 | Define how the deferral window is anchored<a class="headerlink" href="#define-how-the-deferral-window-is-anchored" title="Permalink to this heading">#</a></h4>
<blockquote>
<div><p>1 | Decision boundary</p>
<p>2 | Median</p>
</div></blockquote>
<p>As mentioned above, either the decision boundary can be used to define uncertain cases (i.e., near the boundary) or the median of other scores can be taken. The first item uses the decision boundary and the second item uses the median to quantify the uncertainty (i.e., the median of scores that range from very likely group 1 to very likely group 2 is assumed to be uncertain here).</p>
</div>
<div class="section" id="define-optimization-criterion-for-deferral-learning">
<h4>4 | Define optimization criterion for deferral learning<a class="headerlink" href="#define-optimization-criterion-for-deferral-learning" title="Permalink to this heading">#</a></h4>
<blockquote>
<div><p>1 | Current optimization criterion</p>
<p>2 | Mean decision distance</p>
</div></blockquote>
<p>Here the user can select whether to optimize the criterion previously selected (e.g., the BAC) or the mean decision distance (only works for algorithms which output decision scores/probabilities). In the second case, the underlying idea is that the optimization is better the further away the score is from the decision boundary.</p>
</div>
<div class="section" id="sequences-to-be-tested">
<h4>5 | Sequences to be tested<a class="headerlink" href="#sequences-to-be-tested" title="Permalink to this heading">#</a></h4>
<blockquote>
<div><p>1 | Define sequences matrix to be evaluated</p>
</div></blockquote>
<p>Here the user can define what sequences are to be evaluated. This step is dependent on the identification of models to be included in the ”1: Define meta learning/stacking options”. The idea is that rather than testing all combinations of the models (e.g., model 1 - model 2 - model 3 and then all other combinations of these), the user can specify the models that they want to test. This is because usually there is a rationale for testing model sequences based on clinical experience and also cost (e.g., clinical assessment, then cognitive assessment, then imaging if necessary).</p>
<p>Sequences of assessments need to be specified here either directly or using a MATLAB variable. For example, if you wanted to specify a sequence of model 1 - model 2 - model 3 then you would enter [1 2 3]. If you wanted to specify this and also models 2 1 3 then you would enter [1 2 3; 2 1 3]. If you want to specify more, you can create a MATLAB variable with more sequences in rows and you can enter the variable name into this section.You can also combine sequences with different numbers of examinations. Use Nan padding to fill the missing examination in shorter sequences, e.g. by entering [1 NaN NaN; 2 1 NaN; 3 2 1]. We recommend predefining the sequences in a spreadsheet program and then pasting them into a MATLAB variable at the command line. The variable can then be entered at the menu prompt by typing its name.</p>
<p>Afterwards you can return to the main menu, initialize your analyses and train as indicated in <a class="reference internal" href="4.2.14_paramtemp_stacking.html#stacking"><span class="std std-ref">stacking</span></a>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Sequence optimization is currently only available in classification mode.</p>
</div>
</div>
</div>
</div>
</div>
<script type="text/x-thebe-config">
{
requestKernel: true,
binderOptions: {
repo: "binder-examples/jupyter-stacks-datascience",
ref: "master",
},
codeMirrorConfig: {
theme: "abcdef",
mode: "python"
},
kernelOptions: {
name: "python3",
path: "./."
},
predefinedOutput: true
}
</script>
<script>kernelName = 'python3'</script>
</article>
<footer class="bd-footer-article">
<div class="footer-article-items footer-article__inner">
<div class="footer-article-item"><!-- Previous / next buttons -->
<div class="prev-next-area">
<a class="left-prev"
href="4.2.02_paramtemp_preprocessing_pipeline.html"
title="previous page">
<i class="fa-solid fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">previous</p>
<p class="prev-next-title">Preprocessing pipeline</p>
</div>
</a>
<a class="right-next"
href="4.2.04_paramtemp_learning_algorithm_parameters.html"
title="next page">
<div class="prev-next-info">
<p class="prev-next-subtitle">next</p>
<p class="prev-next-title">Learning algorithm parameters</p>
</div>
<i class="fa-solid fa-angle-right"></i>
</a>
</div></div>
</div>
</footer>
</div>
<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
<div class="sidebar-secondary-item">
<div class="page-toc tocsection onthispage">
<i class="fa-solid fa-list"></i> Contents
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#classification-mode">Classification mode</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#define-prediction-performance-criterion">Define prediction performance criterion</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#configure-learning-algorithm">Configure learning algorithm</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#svm-options">SVM options</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#define-kernel-type">Define kernel type</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#regression-mode">Regression mode</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id1">Define prediction performance criterion</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#select-learning-algorithm">Select learning algorithm</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#id2">Define kernel type</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#optimize-decision-threshold-based-on-roc-expert-mode">Optimize decision threshold based on ROC (expert mode)</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#sequence-optimization">Sequence Optimization</a><ul class="nav section-nav flex-column">
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-the-population-the-deferral-optimization-will-be-based-on">1 | Define the population the deferral optimization will be based on</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-how-to-combine-sequential-predictions">2 | Define how to combine sequential predictions</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-how-the-deferral-window-is-anchored">3 | Define how the deferral window is anchored</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#define-optimization-criterion-for-deferral-learning">4 | Define optimization criterion for deferral learning</a></li>
<li class="toc-h4 nav-item toc-entry"><a class="reference internal nav-link" href="#sequences-to-be-tested">5 | Sequences to be tested</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav></div>
</div></div>
</div>
<footer class="bd-footer-content">
<div class="bd-footer-content__inner container">
<div class="footer-item">
<p class="component-author">
By <a href="https://www.lmu-klinikum.de/psychiatrie-und-psychotherapie/forschung-research/working-groups/precision-psychiatry/7ef67d79b4ad4804">Section for Precision Psychiatry, Ludwig-Maximilian-University Munich</a> / <a href="https://www.psych.mpg.de/2571270/precision-psychiatry">Precision Psychiatry Group, Max Planck Institute of Psychiatry</a>
</p>
</div>
<div class="footer-item">
<p class="copyright">
© Copyright 2022.
<br/>
</p>
</div>
<div class="footer-item">
</div>
<div class="footer-item">
</div>
</div>
</footer>
</main>
</div>
</div>
<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="_static/scripts/bootstrap.js?digest=e353d410970836974a52"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52"></script>
<footer class="bd-footer">
</footer>
</body>
</html>