Općenite informacije

Modeli

  • Forest 1 - slučajna šuma na svim redovnim studentima
  • Forest 2 - slučajna šuma na redovnim studentima koji su pisali esej
  • Bayes NET 1 - Bayesove mreže na svim redovnim studentima
  • Bayes NET 2 - Bayesove mreže na redovnim studentima koji su pisali esej

Direktoriji koji sadrže spremljene modele

  • model1 - modeli na svim redovnim studentima za akademsku godinu 2022 / 2023
  • model2 - modeli na redovnim studentima koji su pisali esej za akademsku godinu 2022 / 2023
  • model3 - modeli na svim redovnim studentima za akademsku godinu 2021 / 2022
  • model4 - modeli na redovnim studentima koji su pisali esej za akademsku godinu 2021 / 2022

Esej

Column

četvrtine 1

kvartili 1

četvrtine 2

kvartili 2

Info

četvrtine 1 - info
Kategorija BROJ MEAN SD
0 ≤ TOTAL POINTS < 25 15 3.766667 1.533747
25 ≤ TOTAL POINTS < 50 94 5.335106 1.786130
50 ≤ TOTAL POINTS < 75 114 7.039474 1.668480
75 ≤ TOTAL POINTS ≤ 100 6 8.083333 1.744037
SVI 229 6.152838 2.008371
kvartili 1 - info
Kat_kvartil BROJ MEAN SD
10.48 ≤ TOTAL POINTS < 41.27 57 4.412281 1.561601
41.27 ≤ TOTAL POINTS < 50.16 57 5.885965 1.750045
50.16 ≤ TOTAL POINTS < 57.11 57 6.833333 1.530445
57.11 ≤ TOTAL POINTS ≤ 82.82 58 7.456897 1.770332
SVI 229 6.152838 2.008371
četvrtine 2 - info
Kategorija BROJ MEAN SD
0 ≤ TOTAL POINTS < 25 85 0.7352941 1.675432
25 ≤ TOTAL POINTS < 50 123 4.4756098 2.582137
50 ≤ TOTAL POINTS < 75 120 6.9291667 1.872283
75 ≤ TOTAL POINTS ≤ 100 6 8.0833333 1.744037
SVI 334 4.4700599 3.228626
kvartili 2 - info
Kat_kvartil BROJ MEAN SD
0 ≤ TOTAL POINTS < 24.465 84 0.7083333 1.666842
24.465 ≤ TOTAL POINTS < 43.985 83 3.6626506 2.502570
43.985 ≤ TOTAL POINTS < 53.12 83 6.1987952 1.842817
53.12 ≤ TOTAL POINTS ≤ 82.82 84 7.3214286 1.819643
SVI 334 4.4700599 3.228626

Column

četvrtine 1

kvartili 1

četvrtine 2

kvartili 2

Info

četvrtine 1 - info
Kategorija BROJ MEAN SD
0 ≤ TOTAL POINTS < 25 11 3.727273 1.489356
25 ≤ TOTAL POINTS < 50 62 5.266129 2.325408
50 ≤ TOTAL POINTS < 75 130 7.166692 1.902990
75 ≤ TOTAL POINTS ≤ 100 15 9.066667 1.387015
SVI 218 6.583349 2.332079
kvartili 1 - info
Kat_kvartil BROJ MEAN SD
6.59 ≤ TOTAL POINTS < 44.65 55 4.845454 2.341005
44.65 ≤ TOTAL POINTS < 54.48 54 6.185185 1.802243
54.48 ≤ TOTAL POINTS < 61.73 54 6.919815 2.112058
61.73 ≤ TOTAL POINTS ≤ 89.73 55 8.381818 1.471846
SVI 218 6.583349 2.332079
četvrtine 2 - info
Kategorija BROJ MEAN SD
0 ≤ TOTAL POINTS < 25 80 0.512500 1.396141
25 ≤ TOTAL POINTS < 50 81 4.030864 3.027319
50 ≤ TOTAL POINTS < 75 137 6.800511 2.437931
75 ≤ TOTAL POINTS ≤ 100 15 9.066667 1.387015
SVI 313 4.585208 3.601925
kvartili 2 - info
Kat_kvartil BROJ MEAN SD
0 ≤ TOTAL POINTS < 24.72 78 0.4871795 1.383986
24.72 ≤ TOTAL POINTS < 48.73 78 3.9679487 3.036937
48.73 ≤ TOTAL POINTS < 58.51 78 6.1367949 2.323369
58.51 ≤ TOTAL POINTS ≤ 89.73 79 7.7088608 2.471125
SVI 313 4.5852077 3.601925

Korelacije

Column 1

svi redovni (2021 / 2022)

redovni koji su pisali esej (2021 / 2022)

Column 2

svi redovni (2022 / 2023)

redovni koji su pisali esej (2022 / 2023)

Značajnost korelacija

Column 1

svi redovni (2021 / 2022)

redovni koji su pisali esej (2021 / 2022)

Column 2

svi redovni (2022 / 2023)

redovni koji su pisali esej (2022 / 2023)

Korelacije - verzija 2

Column 1

svi redovni (2021 / 2022)

redovni koji su pisali esej (2021 / 2022)

Column 2

svi redovni (2022 / 2023)

redovni koji su pisali esej (2022 / 2023)

Distribucije eseja

Column 1

svi redovni (2021 / 2022)

redovni koji su pisali esej (2021 / 2022)

Column 2

svi redovni (2022 / 2023)

redovni koji su pisali esej (2022 / 2023)

Opis modela

Opis modela - svi redovni studenti

Prediktori

  • KVIZ - suma bodova na kvizovima
  • DZ - suma bodova na domaćim zadaćama
  • KOL1 - broj bodova na prvom kolokviju
  • KOL2 - broj bodova na drugom kolokviju
  • KOL3 - broj bodova na trećem kolokviju

Response - Klasifikacija studenata na temelju broja bodova eseju.

  • 1 - ako je na eseju ukupni broj bodova unutar intervala [0, 2.5]
  • 2 - ako je na eseju ukupni broj bodova unutar intervala (2.5, 5]
  • 3 - ako je na eseju ukupni broj bodova unutar intervala (5, 7.5]
  • 4 - ako je na eseju ukupni broj bodova unutar intervala (7.5, 10]

Hiperparametri - za odabir optimalne kombinacije hiperparametara napravljen je cross-validation s 10 kutija pri čemu je na slučajni način isprobano 1000 kombinacija hiperparametara mtry, min_n i trees. Najbolji model je odabran s obzirom na roc_auc metriku.

  • mtry - uzimane su vrijednosti iz skupa {2, 3, 4}
  • trees - uzimani su prirodni brojevi između 400 i 1500
  • min_n - uzimani su prirodni brojevi između 2 i 40.

Hiperparametri - GOD 2022_2023

Column 1

Testirani hiperparametri - GOD 2022 / 2023

Column 2

200 najboljih modela za roc_auc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     2   777     6 roc_auc hand_till  0.7714    10 0.01703 Preprocessor1_Mod…
  2     2   455    11 roc_auc hand_till  0.7712    10 0.01660 Preprocessor1_Mod…
  3     2   782    12 roc_auc hand_till  0.7700    10 0.01742 Preprocessor1_Mod…
  4     2   693     8 roc_auc hand_till  0.7699    10 0.01757 Preprocessor1_Mod…
  5     3   401    11 roc_auc hand_till  0.7699    10 0.01721 Preprocessor1_Mod…
  6     2   469     2 roc_auc hand_till  0.7697    10 0.01712 Preprocessor1_Mod…
  7     2  1170     9 roc_auc hand_till  0.7697    10 0.01827 Preprocessor1_Mod…
  8     2   934     5 roc_auc hand_till  0.7696    10 0.01769 Preprocessor1_Mod…
  9     3   976     2 roc_auc hand_till  0.7695    10 0.01833 Preprocessor1_Mod…
 10     2   899     3 roc_auc hand_till  0.7694    10 0.01592 Preprocessor1_Mod…
 11     2  1045     5 roc_auc hand_till  0.7692    10 0.01623 Preprocessor1_Mod…
 12     2  1015     4 roc_auc hand_till  0.7691    10 0.01691 Preprocessor1_Mod…
 13     2   858     8 roc_auc hand_till  0.7690    10 0.01749 Preprocessor1_Mod…
 14     2   971    10 roc_auc hand_till  0.7690    10 0.01714 Preprocessor1_Mod…
 15     2  1310     3 roc_auc hand_till  0.7688    10 0.01669 Preprocessor1_Mod…
 16     2   802    12 roc_auc hand_till  0.7686    10 0.01648 Preprocessor1_Mod…
 17     2  1318     6 roc_auc hand_till  0.7686    10 0.01626 Preprocessor1_Mod…
 18     2  1343     8 roc_auc hand_till  0.7686    10 0.01624 Preprocessor1_Mod…
 19     2  1166     3 roc_auc hand_till  0.7684    10 0.01626 Preprocessor1_Mod…
 20     2  1152     6 roc_auc hand_till  0.7684    10 0.01623 Preprocessor1_Mod…
 21     2  1287     6 roc_auc hand_till  0.7683    10 0.01641 Preprocessor1_Mod…
 22     2   765     6 roc_auc hand_till  0.7681    10 0.01679 Preprocessor1_Mod…
 23     2   782     9 roc_auc hand_till  0.7681    10 0.01716 Preprocessor1_Mod…
 24     2  1481     7 roc_auc hand_till  0.7681    10 0.01746 Preprocessor1_Mod…
 25     2  1394    11 roc_auc hand_till  0.7680    10 0.01703 Preprocessor1_Mod…
 26     2  1398     9 roc_auc hand_till  0.7680    10 0.01681 Preprocessor1_Mod…
 27     2   488     6 roc_auc hand_till  0.7679    10 0.01722 Preprocessor1_Mod…
 28     2   658     9 roc_auc hand_till  0.7678    10 0.01820 Preprocessor1_Mod…
 29     2  1364    10 roc_auc hand_till  0.7677    10 0.01727 Preprocessor1_Mod…
 30     2  1279     9 roc_auc hand_till  0.7676    10 0.01726 Preprocessor1_Mod…
 31     2  1473     5 roc_auc hand_till  0.7675    10 0.01622 Preprocessor1_Mod…
 32     3   494     4 roc_auc hand_till  0.7674    10 0.01709 Preprocessor1_Mod…
 33     2   788     8 roc_auc hand_till  0.7674    10 0.01729 Preprocessor1_Mod…
 34     2  1348     8 roc_auc hand_till  0.7674    10 0.01745 Preprocessor1_Mod…
 35     4   763     5 roc_auc hand_till  0.7674    10 0.01758 Preprocessor1_Mod…
 36     2  1080     2 roc_auc hand_till  0.7673    10 0.01540 Preprocessor1_Mod…
 37     2   528     4 roc_auc hand_till  0.7673    10 0.01604 Preprocessor1_Mod…
 38     4  1193     5 roc_auc hand_till  0.7673    10 0.01797 Preprocessor1_Mod…
 39     2  1248    11 roc_auc hand_till  0.7672    10 0.01806 Preprocessor1_Mod…
 40     2  1086    15 roc_auc hand_till  0.7671    10 0.01842 Preprocessor1_Mod…
 41     2   669    15 roc_auc hand_till  0.7671    10 0.01920 Preprocessor1_Mod…
 42     3  1392     5 roc_auc hand_till  0.7670    10 0.01744 Preprocessor1_Mod…
 43     2   614    10 roc_auc hand_till  0.7669    10 0.01715 Preprocessor1_Mod…
 44     2   881     7 roc_auc hand_till  0.7668    10 0.01733 Preprocessor1_Mod…
 45     3  1170     6 roc_auc hand_till  0.7667    10 0.01646 Preprocessor1_Mod…
 46     3   733     6 roc_auc hand_till  0.7666    10 0.01659 Preprocessor1_Mod…
 47     2   665    18 roc_auc hand_till  0.7666    10 0.02003 Preprocessor1_Mod…
 48     2   744     5 roc_auc hand_till  0.7666    10 0.01620 Preprocessor1_Mod…
 49     2   681    23 roc_auc hand_till  0.7665    10 0.02122 Preprocessor1_Mod…
 50     2   720     3 roc_auc hand_till  0.7665    10 0.01605 Preprocessor1_Mod…
 51     2   658    10 roc_auc hand_till  0.7665    10 0.01752 Preprocessor1_Mod…
 52     2   864     9 roc_auc hand_till  0.7664    10 0.01584 Preprocessor1_Mod…
 53     2   732     4 roc_auc hand_till  0.7664    10 0.01621 Preprocessor1_Mod…
 54     2   900    10 roc_auc hand_till  0.7664    10 0.01646 Preprocessor1_Mod…
 55     2   935     2 roc_auc hand_till  0.7663    10 0.01655 Preprocessor1_Mod…
 56     3   455     9 roc_auc hand_till  0.7662    10 0.01844 Preprocessor1_Mod…
 57     2   472    11 roc_auc hand_till  0.7662    10 0.01465 Preprocessor1_Mod…
 58     2   991    10 roc_auc hand_till  0.7662    10 0.01714 Preprocessor1_Mod…
 59     2   901     2 roc_auc hand_till  0.7662    10 0.01606 Preprocessor1_Mod…
 60     2  1176     7 roc_auc hand_till  0.7662    10 0.01738 Preprocessor1_Mod…
 61     3   757     3 roc_auc hand_till  0.7661    10 0.01725 Preprocessor1_Mod…
 62     2  1408     4 roc_auc hand_till  0.7661    10 0.01635 Preprocessor1_Mod…
 63     2   817     9 roc_auc hand_till  0.7660    10 0.01631 Preprocessor1_Mod…
 64     3  1045     7 roc_auc hand_till  0.7659    10 0.01693 Preprocessor1_Mod…
 65     2   893    16 roc_auc hand_till  0.7659    10 0.01893 Preprocessor1_Mod…
 66     2  1012     5 roc_auc hand_till  0.7659    10 0.01561 Preprocessor1_Mod…
 67     2  1404    16 roc_auc hand_till  0.7658    10 0.01762 Preprocessor1_Mod…
 68     2   531    14 roc_auc hand_till  0.7658    10 0.02001 Preprocessor1_Mod…
 69     2   434    17 roc_auc hand_till  0.7658    10 0.01918 Preprocessor1_Mod…
 70     3  1026     6 roc_auc hand_till  0.7657    10 0.01809 Preprocessor1_Mod…
 71     2   631     3 roc_auc hand_till  0.7656    10 0.01609 Preprocessor1_Mod…
 72     3  1226     2 roc_auc hand_till  0.7656    10 0.01541 Preprocessor1_Mod…
 73     2   587    30 roc_auc hand_till  0.7656    10 0.02229 Preprocessor1_Mod…
 74     3   465     6 roc_auc hand_till  0.7656    10 0.01873 Preprocessor1_Mod…
 75     3   409     7 roc_auc hand_till  0.7656    10 0.01597 Preprocessor1_Mod…
 76     3  1221     8 roc_auc hand_till  0.7656    10 0.01697 Preprocessor1_Mod…
 77     3   499     7 roc_auc hand_till  0.7656    10 0.01756 Preprocessor1_Mod…
 78     2  1277     2 roc_auc hand_till  0.7655    10 0.01494 Preprocessor1_Mod…
 79     2   596    17 roc_auc hand_till  0.7655    10 0.01756 Preprocessor1_Mod…
 80     2  1485    10 roc_auc hand_till  0.7655    10 0.01496 Preprocessor1_Mod…
 81     4   550     9 roc_auc hand_till  0.7654    10 0.01853 Preprocessor1_Mod…
 82     4   402    16 roc_auc hand_till  0.7654    10 0.01996 Preprocessor1_Mod…
 83     2   650    30 roc_auc hand_till  0.7653    10 0.02088 Preprocessor1_Mod…
 84     2   694     4 roc_auc hand_till  0.7653    10 0.01755 Preprocessor1_Mod…
 85     4  1173     2 roc_auc hand_till  0.7652    10 0.01768 Preprocessor1_Mod…
 86     2   770     9 roc_auc hand_till  0.7651    10 0.01782 Preprocessor1_Mod…
 87     3  1303    11 roc_auc hand_till  0.7651    10 0.01790 Preprocessor1_Mod…
 88     2   687     2 roc_auc hand_till  0.7651    10 0.01606 Preprocessor1_Mod…
 89     3   863     7 roc_auc hand_till  0.7650    10 0.01712 Preprocessor1_Mod…
 90     2   671     2 roc_auc hand_till  0.7650    10 0.01657 Preprocessor1_Mod…
 91     2   411    18 roc_auc hand_till  0.7650    10 0.01730 Preprocessor1_Mod…
 92     2  1198     3 roc_auc hand_till  0.7650    10 0.01688 Preprocessor1_Mod…
 93     3   962     3 roc_auc hand_till  0.7650    10 0.01538 Preprocessor1_Mod…
 94     4  1371     4 roc_auc hand_till  0.7649    10 0.01670 Preprocessor1_Mod…
 95     4   637     5 roc_auc hand_till  0.7649    10 0.01764 Preprocessor1_Mod…
 96     3  1267     9 roc_auc hand_till  0.7648    10 0.01807 Preprocessor1_Mod…
 97     4   915     4 roc_auc hand_till  0.7648    10 0.01742 Preprocessor1_Mod…
 98     2  1154    23 roc_auc hand_till  0.7648    10 0.02090 Preprocessor1_Mod…
 99     4  1408     7 roc_auc hand_till  0.7648    10 0.01752 Preprocessor1_Mod…
100     4   799     6 roc_auc hand_till  0.7648    10 0.01773 Preprocessor1_Mod…
101     3  1096     7 roc_auc hand_till  0.7648    10 0.01830 Preprocessor1_Mod…
102     4  1250     7 roc_auc hand_till  0.7647    10 0.01739 Preprocessor1_Mod…
103     4   452     4 roc_auc hand_till  0.7647    10 0.01728 Preprocessor1_Mod…
104     2   769    16 roc_auc hand_till  0.7647    10 0.01761 Preprocessor1_Mod…
105     2   443    12 roc_auc hand_till  0.7647    10 0.01606 Preprocessor1_Mod…
106     3   674     3 roc_auc hand_till  0.7647    10 0.01664 Preprocessor1_Mod…
107     3   537     7 roc_auc hand_till  0.7647    10 0.01629 Preprocessor1_Mod…
108     3   486    11 roc_auc hand_till  0.7647    10 0.01865 Preprocessor1_Mod…
109     2  1112     8 roc_auc hand_till  0.7646    10 0.01809 Preprocessor1_Mod…
110     3  1486     4 roc_auc hand_till  0.7646    10 0.01788 Preprocessor1_Mod…
111     2   718     2 roc_auc hand_till  0.7646    10 0.01681 Preprocessor1_Mod…
112     2  1222     4 roc_auc hand_till  0.7646    10 0.01662 Preprocessor1_Mod…
113     3  1363     5 roc_auc hand_till  0.7646    10 0.01649 Preprocessor1_Mod…
114     3  1137     2 roc_auc hand_till  0.7645    10 0.01648 Preprocessor1_Mod…
115     3   975    10 roc_auc hand_till  0.7645    10 0.01841 Preprocessor1_Mod…
116     2  1069    14 roc_auc hand_till  0.7645    10 0.01851 Preprocessor1_Mod…
117     2   582     2 roc_auc hand_till  0.7645    10 0.01620 Preprocessor1_Mod…
118     2  1013    16 roc_auc hand_till  0.7645    10 0.01856 Preprocessor1_Mod…
119     3  1035     3 roc_auc hand_till  0.7645    10 0.01743 Preprocessor1_Mod…
120     2  1462    14 roc_auc hand_till  0.7645    10 0.01852 Preprocessor1_Mod…
121     4  1410     4 roc_auc hand_till  0.7645    10 0.01911 Preprocessor1_Mod…
122     4  1066     2 roc_auc hand_till  0.7644    10 0.01733 Preprocessor1_Mod…
123     4   881     6 roc_auc hand_till  0.7644    10 0.01783 Preprocessor1_Mod…
124     3   992     3 roc_auc hand_till  0.7644    10 0.01627 Preprocessor1_Mod…
125     3  1251    11 roc_auc hand_till  0.7644    10 0.01946 Preprocessor1_Mod…
126     2  1061    16 roc_auc hand_till  0.7643    10 0.01888 Preprocessor1_Mod…
127     2  1014    12 roc_auc hand_till  0.7643    10 0.01842 Preprocessor1_Mod…
128     4  1130     7 roc_auc hand_till  0.7643    10 0.01843 Preprocessor1_Mod…
129     4  1027     8 roc_auc hand_till  0.7643    10 0.01739 Preprocessor1_Mod…
130     4  1238     4 roc_auc hand_till  0.7643    10 0.01802 Preprocessor1_Mod…
131     3   533     6 roc_auc hand_till  0.7643    10 0.01791 Preprocessor1_Mod…
132     2   739    25 roc_auc hand_till  0.7643    10 0.02050 Preprocessor1_Mod…
133     3  1149    11 roc_auc hand_till  0.7642    10 0.01783 Preprocessor1_Mod…
134     2   405    11 roc_auc hand_till  0.7642    10 0.01527 Preprocessor1_Mod…
135     2  1001    13 roc_auc hand_till  0.7642    10 0.01799 Preprocessor1_Mod…
136     3   547     3 roc_auc hand_till  0.7642    10 0.01755 Preprocessor1_Mod…
137     4  1005     3 roc_auc hand_till  0.7642    10 0.01695 Preprocessor1_Mod…
138     3   595     6 roc_auc hand_till  0.7641    10 0.01661 Preprocessor1_Mod…
139     4  1060     2 roc_auc hand_till  0.7641    10 0.01677 Preprocessor1_Mod…
140     3  1434     5 roc_auc hand_till  0.7641    10 0.01709 Preprocessor1_Mod…
141     3   440    17 roc_auc hand_till  0.7641    10 0.01980 Preprocessor1_Mod…
142     3   899     5 roc_auc hand_till  0.7641    10 0.01577 Preprocessor1_Mod…
143     2   612     8 roc_auc hand_till  0.7641    10 0.01631 Preprocessor1_Mod…
144     2   974    10 roc_auc hand_till  0.7641    10 0.01711 Preprocessor1_Mod…
145     2   655    19 roc_auc hand_till  0.7640    10 0.01839 Preprocessor1_Mod…
146     3  1478     7 roc_auc hand_till  0.7640    10 0.01803 Preprocessor1_Mod…
147     3   611     6 roc_auc hand_till  0.7640    10 0.01794 Preprocessor1_Mod…
148     2   704    14 roc_auc hand_till  0.7640    10 0.01757 Preprocessor1_Mod…
149     2   427     3 roc_auc hand_till  0.7640    10 0.01557 Preprocessor1_Mod…
150     3  1189     2 roc_auc hand_till  0.7640    10 0.01637 Preprocessor1_Mod…
151     3   532     6 roc_auc hand_till  0.7639    10 0.01699 Preprocessor1_Mod…
152     2   687    18 roc_auc hand_till  0.7639    10 0.01861 Preprocessor1_Mod…
153     2   621    10 roc_auc hand_till  0.7639    10 0.01970 Preprocessor1_Mod…
154     2  1298    10 roc_auc hand_till  0.7639    10 0.01618 Preprocessor1_Mod…
155     2   654    19 roc_auc hand_till  0.7639    10 0.01861 Preprocessor1_Mod…
156     2   954     3 roc_auc hand_till  0.7639    10 0.01672 Preprocessor1_Mod…
157     2   536    10 roc_auc hand_till  0.7638    10 0.01889 Preprocessor1_Mod…
158     3   533     2 roc_auc hand_till  0.7638    10 0.01760 Preprocessor1_Mod…
159     2  1120    16 roc_auc hand_till  0.7638    10 0.01956 Preprocessor1_Mod…
160     3  1488     6 roc_auc hand_till  0.7638    10 0.01736 Preprocessor1_Mod…
161     3  1057    21 roc_auc hand_till  0.7637    10 0.02119 Preprocessor1_Mod…
162     2   512    16 roc_auc hand_till  0.7637    10 0.01950 Preprocessor1_Mod…
163     3  1165     5 roc_auc hand_till  0.7637    10 0.01721 Preprocessor1_Mod…
164     4   423     7 roc_auc hand_till  0.7637    10 0.01758 Preprocessor1_Mod…
165     2   445    18 roc_auc hand_till  0.7637    10 0.01984 Preprocessor1_Mod…
166     3  1242     8 roc_auc hand_till  0.7637    10 0.01852 Preprocessor1_Mod…
167     3  1041     3 roc_auc hand_till  0.7637    10 0.01668 Preprocessor1_Mod…
168     2  1062    25 roc_auc hand_till  0.7636    10 0.01867 Preprocessor1_Mod…
169     3   805     3 roc_auc hand_till  0.7636    10 0.01699 Preprocessor1_Mod…
170     2   937    17 roc_auc hand_till  0.7636    10 0.01987 Preprocessor1_Mod…
171     4  1049     4 roc_auc hand_till  0.7636    10 0.01803 Preprocessor1_Mod…
172     2   492    30 roc_auc hand_till  0.7636    10 0.02082 Preprocessor1_Mod…
173     2  1304    10 roc_auc hand_till  0.7636    10 0.01668 Preprocessor1_Mod…
174     2   562    36 roc_auc hand_till  0.7635    10 0.02068 Preprocessor1_Mod…
175     3   829     9 roc_auc hand_till  0.7635    10 0.01716 Preprocessor1_Mod…
176     3   990     7 roc_auc hand_till  0.7635    10 0.01786 Preprocessor1_Mod…
177     4  1204     4 roc_auc hand_till  0.7635    10 0.01839 Preprocessor1_Mod…
178     2   923    13 roc_auc hand_till  0.7635    10 0.01727 Preprocessor1_Mod…
179     2  1354    12 roc_auc hand_till  0.7634    10 0.01785 Preprocessor1_Mod…
180     2  1445    28 roc_auc hand_till  0.7634    10 0.02191 Preprocessor1_Mod…
181     2   847    34 roc_auc hand_till  0.7633    10 0.02144 Preprocessor1_Mod…
182     4   759     2 roc_auc hand_till  0.7633    10 0.01944 Preprocessor1_Mod…
183     3  1040     3 roc_auc hand_till  0.7633    10 0.01726 Preprocessor1_Mod…
184     2  1021    16 roc_auc hand_till  0.7633    10 0.01891 Preprocessor1_Mod…
185     3   972     3 roc_auc hand_till  0.7633    10 0.01613 Preprocessor1_Mod…
186     4  1062     9 roc_auc hand_till  0.7632    10 0.01779 Preprocessor1_Mod…
187     2  1102    17 roc_auc hand_till  0.7632    10 0.01873 Preprocessor1_Mod…
188     3  1412    13 roc_auc hand_till  0.7632    10 0.01962 Preprocessor1_Mod…
189     2   568    10 roc_auc hand_till  0.7632    10 0.01725 Preprocessor1_Mod…
190     3   674    11 roc_auc hand_till  0.7632    10 0.01772 Preprocessor1_Mod…
191     2  1168    10 roc_auc hand_till  0.7631    10 0.01682 Preprocessor1_Mod…
192     3  1130     3 roc_auc hand_till  0.7631    10 0.01634 Preprocessor1_Mod…
193     4  1238     3 roc_auc hand_till  0.7631    10 0.01789 Preprocessor1_Mod…
194     2   790    15 roc_auc hand_till  0.7631    10 0.01797 Preprocessor1_Mod…
195     2  1290    16 roc_auc hand_till  0.7631    10 0.01815 Preprocessor1_Mod…
196     2  1312    13 roc_auc hand_till  0.7631    10 0.01788 Preprocessor1_Mod…
197     2   485    17 roc_auc hand_till  0.7630    10 0.01900 Preprocessor1_Mod…
198     2  1070    15 roc_auc hand_till  0.7630    10 0.01906 Preprocessor1_Mod…
199     4   478    12 roc_auc hand_till  0.7630    10 0.01723 Preprocessor1_Mod…
200     4   571     4 roc_auc hand_till  0.7630    10 0.01900 Preprocessor1_Mod…

200 najboljih modela za mcc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     3   486    27 mcc     multiclass 0.3440    10 0.04231 Preprocessor1_Mod…
  2     2   847    34 mcc     multiclass 0.3425    10 0.04481 Preprocessor1_Mod…
  3     2   862    33 mcc     multiclass 0.3420    10 0.04647 Preprocessor1_Mod…
  4     3   691    26 mcc     multiclass 0.3388    10 0.04742 Preprocessor1_Mod…
  5     2  1232    36 mcc     multiclass 0.3385    10 0.04236 Preprocessor1_Mod…
  6     2  1088    38 mcc     multiclass 0.3385    10 0.04736 Preprocessor1_Mod…
  7     4   563    38 mcc     multiclass 0.3383    10 0.04152 Preprocessor1_Mod…
  8     3   905    38 mcc     multiclass 0.3382    10 0.04269 Preprocessor1_Mod…
  9     2   736    40 mcc     multiclass 0.3377    10 0.04334 Preprocessor1_Mod…
 10     3  1056    37 mcc     multiclass 0.3372    10 0.04520 Preprocessor1_Mod…
 11     2  1065    33 mcc     multiclass 0.3372    10 0.05084 Preprocessor1_Mod…
 12     3   771    32 mcc     multiclass 0.3365    10 0.04816 Preprocessor1_Mod…
 13     2  1102    17 mcc     multiclass 0.3363    10 0.05645 Preprocessor1_Mod…
 14     2   469     2 mcc     multiclass 0.3335    10 0.04206 Preprocessor1_Mod…
 15     2  1276    36 mcc     multiclass 0.3330    10 0.04602 Preprocessor1_Mod…
 16     2   802    29 mcc     multiclass 0.3323    10 0.04407 Preprocessor1_Mod…
 17     2  1181    39 mcc     multiclass 0.3321    10 0.04589 Preprocessor1_Mod…
 18     2  1313    40 mcc     multiclass 0.3320    10 0.04464 Preprocessor1_Mod…
 19     2  1214    40 mcc     multiclass 0.3317    10 0.04100 Preprocessor1_Mod…
 20     4   786    40 mcc     multiclass 0.3317    10 0.04443 Preprocessor1_Mod…
 21     3   929    37 mcc     multiclass 0.3316    10 0.03887 Preprocessor1_Mod…
 22     4  1029    32 mcc     multiclass 0.3315    10 0.05043 Preprocessor1_Mod…
 23     2   851    22 mcc     multiclass 0.3315    10 0.04457 Preprocessor1_Mod…
 24     3  1342    29 mcc     multiclass 0.3315    10 0.04595 Preprocessor1_Mod…
 25     2   568    27 mcc     multiclass 0.3313    10 0.03866 Preprocessor1_Mod…
 26     3   775    35 mcc     multiclass 0.3313    10 0.04351 Preprocessor1_Mod…
 27     2   602    35 mcc     multiclass 0.3312    10 0.04028 Preprocessor1_Mod…
 28     3  1286    37 mcc     multiclass 0.3311    10 0.04739 Preprocessor1_Mod…
 29     2   752    30 mcc     multiclass 0.3310    10 0.03864 Preprocessor1_Mod…
 30     3  1132    39 mcc     multiclass 0.3309    10 0.04329 Preprocessor1_Mod…
 31     4   860    37 mcc     multiclass 0.3302    10 0.03713 Preprocessor1_Mod…
 32     3  1044    27 mcc     multiclass 0.3302    10 0.04706 Preprocessor1_Mod…
 33     2   730    40 mcc     multiclass 0.3301    10 0.03874 Preprocessor1_Mod…
 34     3  1057    21 mcc     multiclass 0.3301    10 0.04581 Preprocessor1_Mod…
 35     4  1383    30 mcc     multiclass 0.3296    10 0.04697 Preprocessor1_Mod…
 36     3   716    27 mcc     multiclass 0.3289    10 0.04798 Preprocessor1_Mod…
 37     2   947    37 mcc     multiclass 0.3282    10 0.04501 Preprocessor1_Mod…
 38     3  1147    39 mcc     multiclass 0.3281    10 0.04434 Preprocessor1_Mod…
 39     2  1380    39 mcc     multiclass 0.3273    10 0.04474 Preprocessor1_Mod…
 40     3  1429    40 mcc     multiclass 0.3273    10 0.04623 Preprocessor1_Mod…
 41     4  1434    39 mcc     multiclass 0.3269    10 0.03669 Preprocessor1_Mod…
 42     2   521    37 mcc     multiclass 0.3269    10 0.04078 Preprocessor1_Mod…
 43     2  1145    30 mcc     multiclass 0.3268    10 0.04486 Preprocessor1_Mod…
 44     2   761     9 mcc     multiclass 0.3268    10 0.03967 Preprocessor1_Mod…
 45     2   747    33 mcc     multiclass 0.3268    10 0.04420 Preprocessor1_Mod…
 46     3  1373    40 mcc     multiclass 0.3266    10 0.04660 Preprocessor1_Mod…
 47     4   646    38 mcc     multiclass 0.3265    10 0.03748 Preprocessor1_Mod…
 48     2  1386    19 mcc     multiclass 0.3265    10 0.04699 Preprocessor1_Mod…
 49     2  1359    29 mcc     multiclass 0.3264    10 0.04649 Preprocessor1_Mod…
 50     2  1075    39 mcc     multiclass 0.3263    10 0.04233 Preprocessor1_Mod…
 51     3   607    35 mcc     multiclass 0.3262    10 0.04661 Preprocessor1_Mod…
 52     2   677    13 mcc     multiclass 0.3262    10 0.04383 Preprocessor1_Mod…
 53     2   633    37 mcc     multiclass 0.3262    10 0.03815 Preprocessor1_Mod…
 54     4   745    38 mcc     multiclass 0.3262    10 0.04703 Preprocessor1_Mod…
 55     3  1372    23 mcc     multiclass 0.3262    10 0.04838 Preprocessor1_Mod…
 56     2   979    30 mcc     multiclass 0.3261    10 0.04251 Preprocessor1_Mod…
 57     2  1462    37 mcc     multiclass 0.3261    10 0.04185 Preprocessor1_Mod…
 58     4   968    27 mcc     multiclass 0.3261    10 0.04939 Preprocessor1_Mod…
 59     3  1394    22 mcc     multiclass 0.3260    10 0.04978 Preprocessor1_Mod…
 60     2   514    36 mcc     multiclass 0.3260    10 0.04164 Preprocessor1_Mod…
 61     3   421    40 mcc     multiclass 0.3260    10 0.03831 Preprocessor1_Mod…
 62     3   785    30 mcc     multiclass 0.3259    10 0.04536 Preprocessor1_Mod…
 63     3   921    35 mcc     multiclass 0.3259    10 0.04237 Preprocessor1_Mod…
 64     2   892    25 mcc     multiclass 0.3259    10 0.04159 Preprocessor1_Mod…
 65     4   939    39 mcc     multiclass 0.3257    10 0.04550 Preprocessor1_Mod…
 66     3  1071    24 mcc     multiclass 0.3257    10 0.04753 Preprocessor1_Mod…
 67     4   873    27 mcc     multiclass 0.3257    10 0.05021 Preprocessor1_Mod…
 68     3   558    33 mcc     multiclass 0.3257    10 0.04493 Preprocessor1_Mod…
 69     3   665    39 mcc     multiclass 0.3257    10 0.04271 Preprocessor1_Mod…
 70     3   618    31 mcc     multiclass 0.3257    10 0.04519 Preprocessor1_Mod…
 71     4  1067    36 mcc     multiclass 0.3256    10 0.04129 Preprocessor1_Mod…
 72     2  1244    37 mcc     multiclass 0.3256    10 0.03890 Preprocessor1_Mod…
 73     3   873    24 mcc     multiclass 0.3255    10 0.04779 Preprocessor1_Mod…
 74     4   871    30 mcc     multiclass 0.3254    10 0.04531 Preprocessor1_Mod…
 75     2   593    33 mcc     multiclass 0.3254    10 0.04384 Preprocessor1_Mod…
 76     2  1078    33 mcc     multiclass 0.3254    10 0.03770 Preprocessor1_Mod…
 77     2   514    34 mcc     multiclass 0.3254    10 0.04286 Preprocessor1_Mod…
 78     4  1286    26 mcc     multiclass 0.3253    10 0.04841 Preprocessor1_Mod…
 79     2  1055    29 mcc     multiclass 0.3253    10 0.04250 Preprocessor1_Mod…
 80     3  1341    37 mcc     multiclass 0.3251    10 0.04617 Preprocessor1_Mod…
 81     3  1410    30 mcc     multiclass 0.3250    10 0.04547 Preprocessor1_Mod…
 82     4   708    33 mcc     multiclass 0.3250    10 0.04546 Preprocessor1_Mod…
 83     2  1070    34 mcc     multiclass 0.3250    10 0.04261 Preprocessor1_Mod…
 84     4  1165    27 mcc     multiclass 0.3250    10 0.04789 Preprocessor1_Mod…
 85     3   531    27 mcc     multiclass 0.3249    10 0.05028 Preprocessor1_Mod…
 86     2   687    18 mcc     multiclass 0.3249    10 0.05071 Preprocessor1_Mod…
 87     2  1304    40 mcc     multiclass 0.3248    10 0.04134 Preprocessor1_Mod…
 88     3  1306    25 mcc     multiclass 0.3247    10 0.04770 Preprocessor1_Mod…
 89     2   718     2 mcc     multiclass 0.3247    10 0.03824 Preprocessor1_Mod…
 90     2   495    33 mcc     multiclass 0.3245    10 0.03732 Preprocessor1_Mod…
 91     2   934     5 mcc     multiclass 0.3245    10 0.04052 Preprocessor1_Mod…
 92     2   937    21 mcc     multiclass 0.3245    10 0.04548 Preprocessor1_Mod…
 93     3   947    26 mcc     multiclass 0.3244    10 0.04752 Preprocessor1_Mod…
 94     3  1146    28 mcc     multiclass 0.3244    10 0.04675 Preprocessor1_Mod…
 95     3  1361    29 mcc     multiclass 0.3244    10 0.04513 Preprocessor1_Mod…
 96     3  1092    29 mcc     multiclass 0.3244    10 0.04513 Preprocessor1_Mod…
 97     4  1120    29 mcc     multiclass 0.3244    10 0.04592 Preprocessor1_Mod…
 98     4   704    25 mcc     multiclass 0.3244    10 0.04776 Preprocessor1_Mod…
 99     4   537    26 mcc     multiclass 0.3244    10 0.04776 Preprocessor1_Mod…
100     3   924    28 mcc     multiclass 0.3243    10 0.04776 Preprocessor1_Mod…
101     4  1447    30 mcc     multiclass 0.3243    10 0.04671 Preprocessor1_Mod…
102     3  1159    28 mcc     multiclass 0.3243    10 0.04671 Preprocessor1_Mod…
103     2   977    22 mcc     multiclass 0.3242    10 0.04533 Preprocessor1_Mod…
104     3   887    24 mcc     multiclass 0.3242    10 0.04960 Preprocessor1_Mod…
105     3   992    28 mcc     multiclass 0.3241    10 0.04758 Preprocessor1_Mod…
106     2   739    25 mcc     multiclass 0.3237    10 0.04574 Preprocessor1_Mod…
107     3  1374    27 mcc     multiclass 0.3234    10 0.04670 Preprocessor1_Mod…
108     3  1367    27 mcc     multiclass 0.3234    10 0.04960 Preprocessor1_Mod…
109     3   528    24 mcc     multiclass 0.3232    10 0.04874 Preprocessor1_Mod…
110     4   759     2 mcc     multiclass 0.3231    10 0.04531 Preprocessor1_Mod…
111     3   554    10 mcc     multiclass 0.3227    10 0.04370 Preprocessor1_Mod…
112     4   449    25 mcc     multiclass 0.3226    10 0.04835 Preprocessor1_Mod…
113     4   620    40 mcc     multiclass 0.3218    10 0.04047 Preprocessor1_Mod…
114     3   402    38 mcc     multiclass 0.3218    10 0.04510 Preprocessor1_Mod…
115     4   799     6 mcc     multiclass 0.3217    10 0.03955 Preprocessor1_Mod…
116     4  1083    40 mcc     multiclass 0.3215    10 0.04384 Preprocessor1_Mod…
117     2   562    36 mcc     multiclass 0.3215    10 0.04878 Preprocessor1_Mod…
118     2   826    37 mcc     multiclass 0.3213    10 0.04247 Preprocessor1_Mod…
119     2   993    35 mcc     multiclass 0.3212    10 0.04696 Preprocessor1_Mod…
120     2   743    15 mcc     multiclass 0.3212    10 0.04657 Preprocessor1_Mod…
121     2  1343     8 mcc     multiclass 0.3212    10 0.03345 Preprocessor1_Mod…
122     2   789    37 mcc     multiclass 0.3211    10 0.04151 Preprocessor1_Mod…
123     3  1461    38 mcc     multiclass 0.3211    10 0.04249 Preprocessor1_Mod…
124     2  1167    32 mcc     multiclass 0.3210    10 0.04065 Preprocessor1_Mod…
125     2  1407    34 mcc     multiclass 0.3210    10 0.04709 Preprocessor1_Mod…
126     4  1292    27 mcc     multiclass 0.3210    10 0.04625 Preprocessor1_Mod…
127     2  1214    31 mcc     multiclass 0.3210    10 0.04248 Preprocessor1_Mod…
128     4   956    36 mcc     multiclass 0.3209    10 0.04450 Preprocessor1_Mod…
129     4  1119    17 mcc     multiclass 0.3208    10 0.04245 Preprocessor1_Mod…
130     2   956    38 mcc     multiclass 0.3207    10 0.04378 Preprocessor1_Mod…
131     2   881    30 mcc     multiclass 0.3207    10 0.04155 Preprocessor1_Mod…
132     4  1293    23 mcc     multiclass 0.3207    10 0.04516 Preprocessor1_Mod…
133     3  1012    36 mcc     multiclass 0.3206    10 0.04661 Preprocessor1_Mod…
134     2   422    36 mcc     multiclass 0.3206    10 0.04940 Preprocessor1_Mod…
135     2  1288    22 mcc     multiclass 0.3205    10 0.04443 Preprocessor1_Mod…
136     2   871    37 mcc     multiclass 0.3205    10 0.05039 Preprocessor1_Mod…
137     3   920    37 mcc     multiclass 0.3205    10 0.04741 Preprocessor1_Mod…
138     3  1253    35 mcc     multiclass 0.3205    10 0.04493 Preprocessor1_Mod…
139     3  1265    28 mcc     multiclass 0.3205    10 0.04261 Preprocessor1_Mod…
140     2   933    31 mcc     multiclass 0.3204    10 0.04694 Preprocessor1_Mod…
141     3  1193    27 mcc     multiclass 0.3204    10 0.04414 Preprocessor1_Mod…
142     3  1273    21 mcc     multiclass 0.3204    10 0.05151 Preprocessor1_Mod…
143     2  1042    25 mcc     multiclass 0.3204    10 0.04565 Preprocessor1_Mod…
144     2   956    34 mcc     multiclass 0.3203    10 0.04703 Preprocessor1_Mod…
145     3   725    38 mcc     multiclass 0.3203    10 0.04135 Preprocessor1_Mod…
146     4   690    24 mcc     multiclass 0.3203    10 0.05164 Preprocessor1_Mod…
147     2   633    36 mcc     multiclass 0.3203    10 0.04748 Preprocessor1_Mod…
148     2  1451    22 mcc     multiclass 0.3202    10 0.04353 Preprocessor1_Mod…
149     4  1144    26 mcc     multiclass 0.3202    10 0.04800 Preprocessor1_Mod…
150     2  1420    34 mcc     multiclass 0.3202    10 0.04068 Preprocessor1_Mod…
151     4  1436    39 mcc     multiclass 0.3202    10 0.04135 Preprocessor1_Mod…
152     3  1467    20 mcc     multiclass 0.3202    10 0.05048 Preprocessor1_Mod…
153     2   672    31 mcc     multiclass 0.3201    10 0.04313 Preprocessor1_Mod…
154     4   649    31 mcc     multiclass 0.3201    10 0.05219 Preprocessor1_Mod…
155     3   516    36 mcc     multiclass 0.3201    10 0.04302 Preprocessor1_Mod…
156     3  1416    26 mcc     multiclass 0.3201    10 0.04622 Preprocessor1_Mod…
157     4  1056    38 mcc     multiclass 0.3201    10 0.04338 Preprocessor1_Mod…
158     2  1457    22 mcc     multiclass 0.3201    10 0.04506 Preprocessor1_Mod…
159     4   567    29 mcc     multiclass 0.3201    10 0.04416 Preprocessor1_Mod…
160     4   563    36 mcc     multiclass 0.3201    10 0.03805 Preprocessor1_Mod…
161     2   458    37 mcc     multiclass 0.3201    10 0.03746 Preprocessor1_Mod…
162     2   585    20 mcc     multiclass 0.3200    10 0.04497 Preprocessor1_Mod…
163     2   979    32 mcc     multiclass 0.3200    10 0.03855 Preprocessor1_Mod…
164     3  1345    30 mcc     multiclass 0.3200    10 0.04339 Preprocessor1_Mod…
165     3   668    25 mcc     multiclass 0.3200    10 0.05003 Preprocessor1_Mod…
166     2   566    26 mcc     multiclass 0.3200    10 0.04224 Preprocessor1_Mod…
167     2  1005    24 mcc     multiclass 0.3200    10 0.04596 Preprocessor1_Mod…
168     2   536    28 mcc     multiclass 0.3199    10 0.04386 Preprocessor1_Mod…
169     4   613    36 mcc     multiclass 0.3199    10 0.04363 Preprocessor1_Mod…
170     2   685    38 mcc     multiclass 0.3199    10 0.04283 Preprocessor1_Mod…
171     3   830    38 mcc     multiclass 0.3199    10 0.04008 Preprocessor1_Mod…
172     2   590    18 mcc     multiclass 0.3198    10 0.05252 Preprocessor1_Mod…
173     2  1092    23 mcc     multiclass 0.3198    10 0.04341 Preprocessor1_Mod…
174     2  1031    38 mcc     multiclass 0.3198    10 0.04876 Preprocessor1_Mod…
175     3   811    39 mcc     multiclass 0.3198    10 0.04501 Preprocessor1_Mod…
176     2  1459    21 mcc     multiclass 0.3198    10 0.04538 Preprocessor1_Mod…
177     2  1186    35 mcc     multiclass 0.3198    10 0.04711 Preprocessor1_Mod…
178     3  1278    24 mcc     multiclass 0.3198    10 0.04513 Preprocessor1_Mod…
179     3   508    39 mcc     multiclass 0.3197    10 0.03898 Preprocessor1_Mod…
180     4  1113    34 mcc     multiclass 0.3197    10 0.04496 Preprocessor1_Mod…
181     2   730    38 mcc     multiclass 0.3197    10 0.04652 Preprocessor1_Mod…
182     4   465    27 mcc     multiclass 0.3197    10 0.04805 Preprocessor1_Mod…
183     4   700    35 mcc     multiclass 0.3196    10 0.04485 Preprocessor1_Mod…
184     3  1396    26 mcc     multiclass 0.3196    10 0.04609 Preprocessor1_Mod…
185     3  1194    37 mcc     multiclass 0.3196    10 0.04840 Preprocessor1_Mod…
186     3   547     3 mcc     multiclass 0.3196    10 0.04181 Preprocessor1_Mod…
187     2   503    30 mcc     multiclass 0.3196    10 0.05030 Preprocessor1_Mod…
188     4  1386    31 mcc     multiclass 0.3195    10 0.04708 Preprocessor1_Mod…
189     4   442    27 mcc     multiclass 0.3195    10 0.04977 Preprocessor1_Mod…
190     3  1126    39 mcc     multiclass 0.3195    10 0.04479 Preprocessor1_Mod…
191     4   958    40 mcc     multiclass 0.3195    10 0.04322 Preprocessor1_Mod…
192     3   467    40 mcc     multiclass 0.3194    10 0.04567 Preprocessor1_Mod…
193     2   802    12 mcc     multiclass 0.3194    10 0.04688 Preprocessor1_Mod…
194     3   767    22 mcc     multiclass 0.3194    10 0.04952 Preprocessor1_Mod…
195     3  1400    21 mcc     multiclass 0.3194    10 0.05046 Preprocessor1_Mod…
196     2   741    29 mcc     multiclass 0.3194    10 0.04333 Preprocessor1_Mod…
197     3  1129    30 mcc     multiclass 0.3193    10 0.04562 Preprocessor1_Mod…
198     4  1375    28 mcc     multiclass 0.3193    10 0.04496 Preprocessor1_Mod…
199     2   539    18 mcc     multiclass 0.3193    10 0.03989 Preprocessor1_Mod…
200     2  1218    30 mcc     multiclass 0.3192    10 0.04339 Preprocessor1_Mod…

Efikasnost - GOD 2022_2023

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.9966 0.5163
2 precision   macro       0.9970 0.5484
3 spec        macro       0.9985 0.8461
4 accuracy    multiclass  0.9960 0.5647
5 f_meas      macro       0.9968 0.5017
6 mcc         multiclass  0.9945 0.4020
7 kap         multiclass  0.9945 0.3880
8 roc_auc     hand_till   0.9994 0.7621
9 mn_log_loss multiclass  0.3920 1.016 

Confusion matrix

Column 2

ROC curve

Gain curve

Važnost prediktora - GOD 2022_2023

Columnn 1

Gini

permutacija

Column 2

Boruta

Boruta (history)

Hiperparametri - GOD_2021_2022

Column 1

Testirani hiperparametri - GOD 2022 / 2023

Column 2

200 najboljih modela za roc_auc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     2  1264    40 roc_auc hand_till  0.7244    10 0.01830 Preprocessor1_Mod…
  2     2   422    36 roc_auc hand_till  0.7227    10 0.01832 Preprocessor1_Mod…
  3     2   468    38 roc_auc hand_till  0.7226    10 0.01780 Preprocessor1_Mod…
  4     2   689    33 roc_auc hand_till  0.7223    10 0.01841 Preprocessor1_Mod…
  5     2   623    31 roc_auc hand_till  0.7223    10 0.01947 Preprocessor1_Mod…
  6     2  1019    40 roc_auc hand_till  0.7222    10 0.01861 Preprocessor1_Mod…
  7     2   835    34 roc_auc hand_till  0.7221    10 0.01944 Preprocessor1_Mod…
  8     2  1104    37 roc_auc hand_till  0.7219    10 0.01818 Preprocessor1_Mod…
  9     3   505    40 roc_auc hand_till  0.7218    10 0.01711 Preprocessor1_Mod…
 10     2  1044    35 roc_auc hand_till  0.7218    10 0.01667 Preprocessor1_Mod…
 11     2  1019    35 roc_auc hand_till  0.7215    10 0.02000 Preprocessor1_Mod…
 12     2   969    40 roc_auc hand_till  0.7213    10 0.01910 Preprocessor1_Mod…
 13     2   773    38 roc_auc hand_till  0.7212    10 0.01793 Preprocessor1_Mod…
 14     2   939    32 roc_auc hand_till  0.7212    10 0.01852 Preprocessor1_Mod…
 15     2  1054    34 roc_auc hand_till  0.7210    10 0.01892 Preprocessor1_Mod…
 16     2   984    29 roc_auc hand_till  0.7209    10 0.01770 Preprocessor1_Mod…
 17     2   932    35 roc_auc hand_till  0.7205    10 0.01803 Preprocessor1_Mod…
 18     3  1174    40 roc_auc hand_till  0.7205    10 0.01810 Preprocessor1_Mod…
 19     2  1240    36 roc_auc hand_till  0.7204    10 0.01924 Preprocessor1_Mod…
 20     2   515    38 roc_auc hand_till  0.7203    10 0.01960 Preprocessor1_Mod…
 21     2  1354    37 roc_auc hand_till  0.7202    10 0.01956 Preprocessor1_Mod…
 22     2   908    31 roc_auc hand_till  0.7202    10 0.01885 Preprocessor1_Mod…
 23     2   869    38 roc_auc hand_till  0.7202    10 0.01963 Preprocessor1_Mod…
 24     2  1378    32 roc_auc hand_till  0.7201    10 0.01811 Preprocessor1_Mod…
 25     2  1222    38 roc_auc hand_till  0.7201    10 0.01910 Preprocessor1_Mod…
 26     2   813    33 roc_auc hand_till  0.7200    10 0.01748 Preprocessor1_Mod…
 27     2  1496    34 roc_auc hand_till  0.7200    10 0.01822 Preprocessor1_Mod…
 28     3   841    40 roc_auc hand_till  0.7200    10 0.01786 Preprocessor1_Mod…
 29     2   806    37 roc_auc hand_till  0.7200    10 0.01878 Preprocessor1_Mod…
 30     2  1112    38 roc_auc hand_till  0.7199    10 0.01815 Preprocessor1_Mod…
 31     2   952    34 roc_auc hand_till  0.7197    10 0.01682 Preprocessor1_Mod…
 32     3   829    38 roc_auc hand_till  0.7196    10 0.01799 Preprocessor1_Mod…
 33     2   787    36 roc_auc hand_till  0.7195    10 0.01784 Preprocessor1_Mod…
 34     3   906    39 roc_auc hand_till  0.7195    10 0.01803 Preprocessor1_Mod…
 35     2   869    39 roc_auc hand_till  0.7195    10 0.01853 Preprocessor1_Mod…
 36     2  1039    34 roc_auc hand_till  0.7194    10 0.01813 Preprocessor1_Mod…
 37     2   743    29 roc_auc hand_till  0.7194    10 0.01751 Preprocessor1_Mod…
 38     2  1411    37 roc_auc hand_till  0.7194    10 0.01916 Preprocessor1_Mod…
 39     2   921    39 roc_auc hand_till  0.7194    10 0.01854 Preprocessor1_Mod…
 40     3   499    36 roc_auc hand_till  0.7193    10 0.01743 Preprocessor1_Mod…
 41     3   707    38 roc_auc hand_till  0.7193    10 0.01714 Preprocessor1_Mod…
 42     2   665    36 roc_auc hand_till  0.7193    10 0.01934 Preprocessor1_Mod…
 43     2   785    31 roc_auc hand_till  0.7193    10 0.01823 Preprocessor1_Mod…
 44     3   418    34 roc_auc hand_till  0.7193    10 0.01852 Preprocessor1_Mod…
 45     2  1493    33 roc_auc hand_till  0.7192    10 0.01827 Preprocessor1_Mod…
 46     3  1019    38 roc_auc hand_till  0.7192    10 0.01783 Preprocessor1_Mod…
 47     2   417    30 roc_auc hand_till  0.7192    10 0.01822 Preprocessor1_Mod…
 48     3  1275    39 roc_auc hand_till  0.7192    10 0.01826 Preprocessor1_Mod…
 49     2   890    38 roc_auc hand_till  0.7191    10 0.01830 Preprocessor1_Mod…
 50     2  1241    38 roc_auc hand_till  0.7191    10 0.01864 Preprocessor1_Mod…
 51     2   537    33 roc_auc hand_till  0.7191    10 0.01948 Preprocessor1_Mod…
 52     2  1065    40 roc_auc hand_till  0.7190    10 0.01877 Preprocessor1_Mod…
 53     2  1313    29 roc_auc hand_till  0.7189    10 0.01826 Preprocessor1_Mod…
 54     3  1116    40 roc_auc hand_till  0.7188    10 0.01849 Preprocessor1_Mod…
 55     2  1230    37 roc_auc hand_till  0.7188    10 0.01928 Preprocessor1_Mod…
 56     2  1342    28 roc_auc hand_till  0.7188    10 0.01898 Preprocessor1_Mod…
 57     3  1203    40 roc_auc hand_till  0.7188    10 0.01715 Preprocessor1_Mod…
 58     3   573    32 roc_auc hand_till  0.7188    10 0.01776 Preprocessor1_Mod…
 59     3   671    37 roc_auc hand_till  0.7188    10 0.01771 Preprocessor1_Mod…
 60     2  1495    39 roc_auc hand_till  0.7188    10 0.01942 Preprocessor1_Mod…
 61     2  1078    39 roc_auc hand_till  0.7188    10 0.01916 Preprocessor1_Mod…
 62     3  1405    37 roc_auc hand_till  0.7188    10 0.01791 Preprocessor1_Mod…
 63     2   902    38 roc_auc hand_till  0.7187    10 0.01803 Preprocessor1_Mod…
 64     3  1311    40 roc_auc hand_till  0.7187    10 0.01756 Preprocessor1_Mod…
 65     3   852    40 roc_auc hand_till  0.7187    10 0.01752 Preprocessor1_Mod…
 66     2  1035    29 roc_auc hand_till  0.7186    10 0.01854 Preprocessor1_Mod…
 67     2  1209    40 roc_auc hand_till  0.7185    10 0.01906 Preprocessor1_Mod…
 68     2   709    37 roc_auc hand_till  0.7185    10 0.01886 Preprocessor1_Mod…
 69     2   739    30 roc_auc hand_till  0.7185    10 0.01791 Preprocessor1_Mod…
 70     2  1449    37 roc_auc hand_till  0.7185    10 0.01880 Preprocessor1_Mod…
 71     4   412    40 roc_auc hand_till  0.7184    10 0.01972 Preprocessor1_Mod…
 72     2   536    29 roc_auc hand_till  0.7184    10 0.01792 Preprocessor1_Mod…
 73     3   650    34 roc_auc hand_till  0.7184    10 0.01865 Preprocessor1_Mod…
 74     2  1395    30 roc_auc hand_till  0.7184    10 0.01772 Preprocessor1_Mod…
 75     3   480    37 roc_auc hand_till  0.7183    10 0.01755 Preprocessor1_Mod…
 76     3   947    39 roc_auc hand_till  0.7182    10 0.01752 Preprocessor1_Mod…
 77     2  1005    39 roc_auc hand_till  0.7181    10 0.01803 Preprocessor1_Mod…
 78     2   646    29 roc_auc hand_till  0.7180    10 0.01910 Preprocessor1_Mod…
 79     2  1281    35 roc_auc hand_till  0.7180    10 0.01751 Preprocessor1_Mod…
 80     2   438    29 roc_auc hand_till  0.7180    10 0.01824 Preprocessor1_Mod…
 81     4   732    40 roc_auc hand_till  0.7179    10 0.01876 Preprocessor1_Mod…
 82     2  1200    31 roc_auc hand_till  0.7179    10 0.01800 Preprocessor1_Mod…
 83     3   997    38 roc_auc hand_till  0.7178    10 0.01901 Preprocessor1_Mod…
 84     3   620    39 roc_auc hand_till  0.7178    10 0.01887 Preprocessor1_Mod…
 85     2   972    34 roc_auc hand_till  0.7177    10 0.01855 Preprocessor1_Mod…
 86     2   668    40 roc_auc hand_till  0.7176    10 0.01801 Preprocessor1_Mod…
 87     2  1347    38 roc_auc hand_till  0.7176    10 0.01814 Preprocessor1_Mod…
 88     4   770    39 roc_auc hand_till  0.7176    10 0.01826 Preprocessor1_Mod…
 89     3  1358    35 roc_auc hand_till  0.7176    10 0.01777 Preprocessor1_Mod…
 90     2  1426    36 roc_auc hand_till  0.7175    10 0.01831 Preprocessor1_Mod…
 91     2  1262    32 roc_auc hand_till  0.7175    10 0.01829 Preprocessor1_Mod…
 92     2  1026    33 roc_auc hand_till  0.7175    10 0.01869 Preprocessor1_Mod…
 93     2  1116    40 roc_auc hand_till  0.7175    10 0.01930 Preprocessor1_Mod…
 94     3  1229    36 roc_auc hand_till  0.7174    10 0.01711 Preprocessor1_Mod…
 95     3   762    32 roc_auc hand_till  0.7174    10 0.01786 Preprocessor1_Mod…
 96     2   748    30 roc_auc hand_till  0.7174    10 0.01861 Preprocessor1_Mod…
 97     3   952    37 roc_auc hand_till  0.7173    10 0.01760 Preprocessor1_Mod…
 98     3   496    39 roc_auc hand_till  0.7173    10 0.01875 Preprocessor1_Mod…
 99     3  1387    36 roc_auc hand_till  0.7173    10 0.01723 Preprocessor1_Mod…
100     3   915    37 roc_auc hand_till  0.7173    10 0.01861 Preprocessor1_Mod…
101     2  1350    30 roc_auc hand_till  0.7172    10 0.01720 Preprocessor1_Mod…
102     3  1066    29 roc_auc hand_till  0.7172    10 0.01745 Preprocessor1_Mod…
103     4   513    40 roc_auc hand_till  0.7172    10 0.01835 Preprocessor1_Mod…
104     2   613    30 roc_auc hand_till  0.7172    10 0.01928 Preprocessor1_Mod…
105     2  1284    34 roc_auc hand_till  0.7172    10 0.01865 Preprocessor1_Mod…
106     2   956    31 roc_auc hand_till  0.7171    10 0.01764 Preprocessor1_Mod…
107     4   665    40 roc_auc hand_till  0.7171    10 0.01679 Preprocessor1_Mod…
108     2   828    32 roc_auc hand_till  0.7170    10 0.01821 Preprocessor1_Mod…
109     2  1206    32 roc_auc hand_till  0.7169    10 0.01870 Preprocessor1_Mod…
110     3   532    39 roc_auc hand_till  0.7169    10 0.01812 Preprocessor1_Mod…
111     2  1294    30 roc_auc hand_till  0.7169    10 0.01783 Preprocessor1_Mod…
112     4   815    40 roc_auc hand_till  0.7169    10 0.01850 Preprocessor1_Mod…
113     3  1166    38 roc_auc hand_till  0.7168    10 0.01786 Preprocessor1_Mod…
114     2  1450    35 roc_auc hand_till  0.7168    10 0.01910 Preprocessor1_Mod…
115     2   748    37 roc_auc hand_till  0.7168    10 0.01823 Preprocessor1_Mod…
116     3   957    30 roc_auc hand_till  0.7168    10 0.01845 Preprocessor1_Mod…
117     2  1208    33 roc_auc hand_till  0.7168    10 0.01881 Preprocessor1_Mod…
118     3  1122    31 roc_auc hand_till  0.7168    10 0.01767 Preprocessor1_Mod…
119     2  1022    23 roc_auc hand_till  0.7168    10 0.01733 Preprocessor1_Mod…
120     2  1483    29 roc_auc hand_till  0.7167    10 0.01864 Preprocessor1_Mod…
121     3   450    35 roc_auc hand_till  0.7166    10 0.01870 Preprocessor1_Mod…
122     3   833    40 roc_auc hand_till  0.7166    10 0.01753 Preprocessor1_Mod…
123     2   666    26 roc_auc hand_till  0.7166    10 0.01781 Preprocessor1_Mod…
124     2   478    31 roc_auc hand_till  0.7164    10 0.01744 Preprocessor1_Mod…
125     2  1414    38 roc_auc hand_till  0.7164    10 0.01868 Preprocessor1_Mod…
126     2   824    30 roc_auc hand_till  0.7163    10 0.01711 Preprocessor1_Mod…
127     2   674    34 roc_auc hand_till  0.7163    10 0.01748 Preprocessor1_Mod…
128     2   615    25 roc_auc hand_till  0.7163    10 0.01882 Preprocessor1_Mod…
129     4  1224    40 roc_auc hand_till  0.7163    10 0.01681 Preprocessor1_Mod…
130     3   914    33 roc_auc hand_till  0.7161    10 0.01799 Preprocessor1_Mod…
131     3  1426    40 roc_auc hand_till  0.7161    10 0.01785 Preprocessor1_Mod…
132     3  1003    34 roc_auc hand_till  0.7161    10 0.01749 Preprocessor1_Mod…
133     2  1066    36 roc_auc hand_till  0.7161    10 0.01920 Preprocessor1_Mod…
134     2   727    29 roc_auc hand_till  0.7161    10 0.01841 Preprocessor1_Mod…
135     3   532    33 roc_auc hand_till  0.7161    10 0.01783 Preprocessor1_Mod…
136     4   726    38 roc_auc hand_till  0.7161    10 0.01778 Preprocessor1_Mod…
137     2  1449    33 roc_auc hand_till  0.7161    10 0.01842 Preprocessor1_Mod…
138     2  1188    36 roc_auc hand_till  0.7161    10 0.01771 Preprocessor1_Mod…
139     3  1370    36 roc_auc hand_till  0.7160    10 0.01859 Preprocessor1_Mod…
140     2   626    23 roc_auc hand_till  0.7160    10 0.01836 Preprocessor1_Mod…
141     4   444    37 roc_auc hand_till  0.7160    10 0.01714 Preprocessor1_Mod…
142     2   484    29 roc_auc hand_till  0.7160    10 0.01818 Preprocessor1_Mod…
143     3   505    38 roc_auc hand_till  0.7159    10 0.01765 Preprocessor1_Mod…
144     3   480    33 roc_auc hand_till  0.7159    10 0.01768 Preprocessor1_Mod…
145     3  1025    33 roc_auc hand_till  0.7159    10 0.01814 Preprocessor1_Mod…
146     3   972    40 roc_auc hand_till  0.7159    10 0.01824 Preprocessor1_Mod…
147     2  1272    26 roc_auc hand_till  0.7158    10 0.01763 Preprocessor1_Mod…
148     3  1075    28 roc_auc hand_till  0.7158    10 0.01660 Preprocessor1_Mod…
149     3  1111    31 roc_auc hand_till  0.7158    10 0.01701 Preprocessor1_Mod…
150     3  1253    29 roc_auc hand_till  0.7158    10 0.01771 Preprocessor1_Mod…
151     2  1476    38 roc_auc hand_till  0.7158    10 0.01856 Preprocessor1_Mod…
152     3   939    32 roc_auc hand_till  0.7158    10 0.01790 Preprocessor1_Mod…
153     3  1294    38 roc_auc hand_till  0.7157    10 0.01809 Preprocessor1_Mod…
154     3  1242    31 roc_auc hand_till  0.7157    10 0.01670 Preprocessor1_Mod…
155     4   955    36 roc_auc hand_till  0.7156    10 0.01782 Preprocessor1_Mod…
156     3   973    36 roc_auc hand_till  0.7156    10 0.01763 Preprocessor1_Mod…
157     3   659    34 roc_auc hand_till  0.7156    10 0.01681 Preprocessor1_Mod…
158     3  1120    31 roc_auc hand_till  0.7156    10 0.01760 Preprocessor1_Mod…
159     3  1236    30 roc_auc hand_till  0.7156    10 0.01782 Preprocessor1_Mod…
160     3   461    31 roc_auc hand_till  0.7155    10 0.01700 Preprocessor1_Mod…
161     3   903    36 roc_auc hand_till  0.7155    10 0.01715 Preprocessor1_Mod…
162     2  1118    29 roc_auc hand_till  0.7155    10 0.01791 Preprocessor1_Mod…
163     4  1195    40 roc_auc hand_till  0.7155    10 0.01698 Preprocessor1_Mod…
164     3  1311    29 roc_auc hand_till  0.7154    10 0.01790 Preprocessor1_Mod…
165     3   731    36 roc_auc hand_till  0.7154    10 0.01764 Preprocessor1_Mod…
166     3  1174    38 roc_auc hand_till  0.7154    10 0.01823 Preprocessor1_Mod…
167     3   894    31 roc_auc hand_till  0.7154    10 0.01794 Preprocessor1_Mod…
168     2  1195    33 roc_auc hand_till  0.7153    10 0.01888 Preprocessor1_Mod…
169     2   823    36 roc_auc hand_till  0.7153    10 0.01799 Preprocessor1_Mod…
170     4   728    40 roc_auc hand_till  0.7153    10 0.01706 Preprocessor1_Mod…
171     2  1420    25 roc_auc hand_till  0.7152    10 0.01727 Preprocessor1_Mod…
172     2  1281    28 roc_auc hand_till  0.7152    10 0.01760 Preprocessor1_Mod…
173     2  1458    27 roc_auc hand_till  0.7152    10 0.01778 Preprocessor1_Mod…
174     2  1088    29 roc_auc hand_till  0.7152    10 0.01811 Preprocessor1_Mod…
175     4  1472    39 roc_auc hand_till  0.7151    10 0.01724 Preprocessor1_Mod…
176     3   662    39 roc_auc hand_till  0.7151    10 0.01836 Preprocessor1_Mod…
177     2   771    31 roc_auc hand_till  0.7151    10 0.01715 Preprocessor1_Mod…
178     3  1172    34 roc_auc hand_till  0.7151    10 0.01863 Preprocessor1_Mod…
179     3   790    33 roc_auc hand_till  0.7150    10 0.01801 Preprocessor1_Mod…
180     2   472    34 roc_auc hand_till  0.7150    10 0.01733 Preprocessor1_Mod…
181     2  1164    26 roc_auc hand_till  0.7150    10 0.01830 Preprocessor1_Mod…
182     3  1293    29 roc_auc hand_till  0.7149    10 0.01765 Preprocessor1_Mod…
183     3  1023    37 roc_auc hand_till  0.7149    10 0.01900 Preprocessor1_Mod…
184     4   741    37 roc_auc hand_till  0.7149    10 0.01732 Preprocessor1_Mod…
185     2  1343    28 roc_auc hand_till  0.7149    10 0.01874 Preprocessor1_Mod…
186     3  1047    37 roc_auc hand_till  0.7149    10 0.01761 Preprocessor1_Mod…
187     3   565    36 roc_auc hand_till  0.7149    10 0.01744 Preprocessor1_Mod…
188     3   536    35 roc_auc hand_till  0.7148    10 0.01953 Preprocessor1_Mod…
189     2   822    26 roc_auc hand_till  0.7148    10 0.01835 Preprocessor1_Mod…
190     2   999    24 roc_auc hand_till  0.7148    10 0.01701 Preprocessor1_Mod…
191     2   503    31 roc_auc hand_till  0.7148    10 0.01755 Preprocessor1_Mod…
192     2  1454    25 roc_auc hand_till  0.7146    10 0.01815 Preprocessor1_Mod…
193     4  1489    37 roc_auc hand_till  0.7146    10 0.01812 Preprocessor1_Mod…
194     3  1475    33 roc_auc hand_till  0.7146    10 0.01851 Preprocessor1_Mod…
195     2   818    36 roc_auc hand_till  0.7146    10 0.01699 Preprocessor1_Mod…
196     4   642    34 roc_auc hand_till  0.7146    10 0.01748 Preprocessor1_Mod…
197     3  1415    37 roc_auc hand_till  0.7146    10 0.01842 Preprocessor1_Mod…
198     2   992    22 roc_auc hand_till  0.7146    10 0.01761 Preprocessor1_Mod…
199     3   884    31 roc_auc hand_till  0.7145    10 0.01673 Preprocessor1_Mod…
200     2   401    28 roc_auc hand_till  0.7145    10 0.01833 Preprocessor1_Mod…

200 najboljih modela za mcc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     2   422    36 mcc     multiclass 0.3906    10 0.02657 Preprocessor1_Mod…
  2     2  1078    29 mcc     multiclass 0.3905    10 0.02974 Preprocessor1_Mod…
  3     2  1262    32 mcc     multiclass 0.3899    10 0.02684 Preprocessor1_Mod…
  4     2   689    33 mcc     multiclass 0.3855    10 0.03279 Preprocessor1_Mod…
  5     2   748    30 mcc     multiclass 0.3849    10 0.03377 Preprocessor1_Mod…
  6     2   515    38 mcc     multiclass 0.3846    10 0.02759 Preprocessor1_Mod…
  7     2   613    30 mcc     multiclass 0.3844    10 0.03468 Preprocessor1_Mod…
  8     2  1342    28 mcc     multiclass 0.3842    10 0.02999 Preprocessor1_Mod…
  9     2  1088    29 mcc     multiclass 0.3841    10 0.03406 Preprocessor1_Mod…
 10     2   623    31 mcc     multiclass 0.3840    10 0.02999 Preprocessor1_Mod…
 11     2  1054    34 mcc     multiclass 0.3840    10 0.03543 Preprocessor1_Mod…
 12     2   581    27 mcc     multiclass 0.3831    10 0.02571 Preprocessor1_Mod…
 13     2   785    31 mcc     multiclass 0.3829    10 0.02979 Preprocessor1_Mod…
 14     2  1136    21 mcc     multiclass 0.3823    10 0.03175 Preprocessor1_Mod…
 15     2   475    21 mcc     multiclass 0.3823    10 0.03206 Preprocessor1_Mod…
 16     3   450    35 mcc     multiclass 0.3810    10 0.02575 Preprocessor1_Mod…
 17     2   665    36 mcc     multiclass 0.3792    10 0.03349 Preprocessor1_Mod…
 18     3   957    30 mcc     multiclass 0.3791    10 0.03165 Preprocessor1_Mod…
 19     2  1066    36 mcc     multiclass 0.3788    10 0.03422 Preprocessor1_Mod…
 20     2  1476    38 mcc     multiclass 0.3787    10 0.03344 Preprocessor1_Mod…
 21     3  1122    31 mcc     multiclass 0.3787    10 0.03034 Preprocessor1_Mod…
 22     2   972    34 mcc     multiclass 0.3785    10 0.03873 Preprocessor1_Mod…
 23     2   952    34 mcc     multiclass 0.3784    10 0.03188 Preprocessor1_Mod…
 24     2   932    35 mcc     multiclass 0.3783    10 0.03562 Preprocessor1_Mod…
 25     3   536    35 mcc     multiclass 0.3782    10 0.02787 Preprocessor1_Mod…
 26     2  1493    33 mcc     multiclass 0.3782    10 0.03595 Preprocessor1_Mod…
 27     2   828    32 mcc     multiclass 0.3781    10 0.03005 Preprocessor1_Mod…
 28     2  1104    37 mcc     multiclass 0.3781    10 0.03714 Preprocessor1_Mod…
 29     2   886    29 mcc     multiclass 0.3780    10 0.02784 Preprocessor1_Mod…
 30     2  1272    26 mcc     multiclass 0.3779    10 0.02403 Preprocessor1_Mod…
 31     3   914    33 mcc     multiclass 0.3776    10 0.03197 Preprocessor1_Mod…
 32     2  1347    38 mcc     multiclass 0.3776    10 0.02978 Preprocessor1_Mod…
 33     2   823    36 mcc     multiclass 0.3776    10 0.03844 Preprocessor1_Mod…
 34     2   939    32 mcc     multiclass 0.3774    10 0.03463 Preprocessor1_Mod…
 35     2   690    25 mcc     multiclass 0.3774    10 0.02877 Preprocessor1_Mod…
 36     2  1293    24 mcc     multiclass 0.3773    10 0.02908 Preprocessor1_Mod…
 37     2   669    20 mcc     multiclass 0.3770    10 0.03346 Preprocessor1_Mod…
 38     2   626    23 mcc     multiclass 0.3768    10 0.02943 Preprocessor1_Mod…
 39     2  1473    21 mcc     multiclass 0.3767    10 0.02555 Preprocessor1_Mod…
 40     2  1496    19 mcc     multiclass 0.3765    10 0.02731 Preprocessor1_Mod…
 41     2   560    25 mcc     multiclass 0.3763    10 0.03417 Preprocessor1_Mod…
 42     2   671    20 mcc     multiclass 0.3759    10 0.03213 Preprocessor1_Mod…
 43     2  1019    40 mcc     multiclass 0.3740    10 0.03253 Preprocessor1_Mod…
 44     2   835    34 mcc     multiclass 0.3735    10 0.02911 Preprocessor1_Mod…
 45     2   869    39 mcc     multiclass 0.3732    10 0.02957 Preprocessor1_Mod…
 46     3   942    34 mcc     multiclass 0.3731    10 0.02797 Preprocessor1_Mod…
 47     2  1281    35 mcc     multiclass 0.3731    10 0.03344 Preprocessor1_Mod…
 48     2  1116    40 mcc     multiclass 0.3729    10 0.02974 Preprocessor1_Mod…
 49     2  1230    37 mcc     multiclass 0.3729    10 0.03735 Preprocessor1_Mod…
 50     2   969    40 mcc     multiclass 0.3727    10 0.03175 Preprocessor1_Mod…
 51     2   806    37 mcc     multiclass 0.3726    10 0.03353 Preprocessor1_Mod…
 52     2  1496    34 mcc     multiclass 0.3726    10 0.03159 Preprocessor1_Mod…
 53     2   869    38 mcc     multiclass 0.3726    10 0.03075 Preprocessor1_Mod…
 54     2  1208    33 mcc     multiclass 0.3725    10 0.03184 Preprocessor1_Mod…
 55     2  1005    39 mcc     multiclass 0.3725    10 0.03358 Preprocessor1_Mod…
 56     2  1188    36 mcc     multiclass 0.3725    10 0.03648 Preprocessor1_Mod…
 57     2  1495    39 mcc     multiclass 0.3724    10 0.03667 Preprocessor1_Mod…
 58     2  1483    29 mcc     multiclass 0.3722    10 0.03101 Preprocessor1_Mod…
 59     2   498     8 mcc     multiclass 0.3721    10 0.02670 Preprocessor1_Mod…
 60     2  1281    28 mcc     multiclass 0.3721    10 0.03121 Preprocessor1_Mod…
 61     3  1293    29 mcc     multiclass 0.3721    10 0.03058 Preprocessor1_Mod…
 62     2   773    38 mcc     multiclass 0.3721    10 0.03926 Preprocessor1_Mod…
 63     3   537    30 mcc     multiclass 0.3721    10 0.02732 Preprocessor1_Mod…
 64     2  1411    37 mcc     multiclass 0.3720    10 0.02917 Preprocessor1_Mod…
 65     2   902    38 mcc     multiclass 0.3720    10 0.03652 Preprocessor1_Mod…
 66     2  1303    22 mcc     multiclass 0.3719    10 0.03212 Preprocessor1_Mod…
 67     2  1284    34 mcc     multiclass 0.3719    10 0.03880 Preprocessor1_Mod…
 68     3  1111    31 mcc     multiclass 0.3719    10 0.03101 Preprocessor1_Mod…
 69     2   787    36 mcc     multiclass 0.3718    10 0.03301 Preprocessor1_Mod…
 70     2  1065    40 mcc     multiclass 0.3718    10 0.03282 Preprocessor1_Mod…
 71     3   754    24 mcc     multiclass 0.3717    10 0.02415 Preprocessor1_Mod…
 72     2  1019    35 mcc     multiclass 0.3717    10 0.03064 Preprocessor1_Mod…
 73     2   783    23 mcc     multiclass 0.3716    10 0.02873 Preprocessor1_Mod…
 74     2   771    31 mcc     multiclass 0.3716    10 0.03180 Preprocessor1_Mod…
 75     2  1449    33 mcc     multiclass 0.3716    10 0.03134 Preprocessor1_Mod…
 76     2  1294    30 mcc     multiclass 0.3716    10 0.03134 Preprocessor1_Mod…
 77     2   921    39 mcc     multiclass 0.3715    10 0.03528 Preprocessor1_Mod…
 78     2  1206    32 mcc     multiclass 0.3714    10 0.03887 Preprocessor1_Mod…
 79     2   744    33 mcc     multiclass 0.3714    10 0.03463 Preprocessor1_Mod…
 80     2  1164    26 mcc     multiclass 0.3714    10 0.03272 Preprocessor1_Mod…
 81     2  1343    28 mcc     multiclass 0.3714    10 0.03206 Preprocessor1_Mod…
 82     2   888    23 mcc     multiclass 0.3713    10 0.02612 Preprocessor1_Mod…
 83     2  1035    29 mcc     multiclass 0.3713    10 0.03062 Preprocessor1_Mod…
 84     4  1331    23 mcc     multiclass 0.3713    10 0.03060 Preprocessor1_Mod…
 85     2   518    17 mcc     multiclass 0.3713    10 0.02890 Preprocessor1_Mod…
 86     3  1022    30 mcc     multiclass 0.3712    10 0.02777 Preprocessor1_Mod…
 87     2   646    29 mcc     multiclass 0.3712    10 0.03175 Preprocessor1_Mod…
 88     2  1219    21 mcc     multiclass 0.3711    10 0.02673 Preprocessor1_Mod…
 89     2  1350    30 mcc     multiclass 0.3711    10 0.03048 Preprocessor1_Mod…
 90     2  1356    23 mcc     multiclass 0.3711    10 0.03275 Preprocessor1_Mod…
 91     2  1388    22 mcc     multiclass 0.3711    10 0.03280 Preprocessor1_Mod…
 92     3  1311    29 mcc     multiclass 0.3711    10 0.03005 Preprocessor1_Mod…
 93     2   438    29 mcc     multiclass 0.3709    10 0.03358 Preprocessor1_Mod…
 94     2   726    17 mcc     multiclass 0.3709    10 0.03113 Preprocessor1_Mod…
 95     3  1099    26 mcc     multiclass 0.3708    10 0.03049 Preprocessor1_Mod…
 96     2  1458    27 mcc     multiclass 0.3708    10 0.02651 Preprocessor1_Mod…
 97     2  1450    35 mcc     multiclass 0.3708    10 0.03709 Preprocessor1_Mod…
 98     2   548    15 mcc     multiclass 0.3708    10 0.02380 Preprocessor1_Mod…
 99     2   636    18 mcc     multiclass 0.3708    10 0.03155 Preprocessor1_Mod…
100     2   727    29 mcc     multiclass 0.3707    10 0.03147 Preprocessor1_Mod…
101     2   671    27 mcc     multiclass 0.3706    10 0.03530 Preprocessor1_Mod…
102     2  1499    18 mcc     multiclass 0.3706    10 0.03321 Preprocessor1_Mod…
103     2  1339    27 mcc     multiclass 0.3705    10 0.02745 Preprocessor1_Mod…
104     2   666    26 mcc     multiclass 0.3703    10 0.03056 Preprocessor1_Mod…
105     2  1450    20 mcc     multiclass 0.3702    10 0.03065 Preprocessor1_Mod…
106     2   888    18 mcc     multiclass 0.3701    10 0.02477 Preprocessor1_Mod…
107     2  1492    19 mcc     multiclass 0.3699    10 0.03316 Preprocessor1_Mod…
108     2   765    19 mcc     multiclass 0.3698    10 0.03313 Preprocessor1_Mod…
109     2  1027    14 mcc     multiclass 0.3698    10 0.02688 Preprocessor1_Mod…
110     2  1403    17 mcc     multiclass 0.3697    10 0.02519 Preprocessor1_Mod…
111     2  1370    21 mcc     multiclass 0.3696    10 0.02691 Preprocessor1_Mod…
112     2   778    21 mcc     multiclass 0.3696    10 0.03411 Preprocessor1_Mod…
113     2  1317    22 mcc     multiclass 0.3693    10 0.02740 Preprocessor1_Mod…
114     2  1098    26 mcc     multiclass 0.3693    10 0.03550 Preprocessor1_Mod…
115     3   841    40 mcc     multiclass 0.3687    10 0.03074 Preprocessor1_Mod…
116     2   822    26 mcc     multiclass 0.3686    10 0.03118 Preprocessor1_Mod…
117     3  1174    38 mcc     multiclass 0.3683    10 0.03003 Preprocessor1_Mod…
118     4   552    35 mcc     multiclass 0.3679    10 0.02491 Preprocessor1_Mod…
119     3  1275    39 mcc     multiclass 0.3672    10 0.02950 Preprocessor1_Mod…
120     3  1116    40 mcc     multiclass 0.3670    10 0.03198 Preprocessor1_Mod…
121     3   707    38 mcc     multiclass 0.3668    10 0.02914 Preprocessor1_Mod…
122     3   617    29 mcc     multiclass 0.3668    10 0.03515 Preprocessor1_Mod…
123     4   952    35 mcc     multiclass 0.3667    10 0.02556 Preprocessor1_Mod…
124     2  1112    38 mcc     multiclass 0.3666    10 0.03874 Preprocessor1_Mod…
125     3   894    31 mcc     multiclass 0.3665    10 0.02900 Preprocessor1_Mod…
126     2  1241    38 mcc     multiclass 0.3664    10 0.03259 Preprocessor1_Mod…
127     2   478    31 mcc     multiclass 0.3664    10 0.03991 Preprocessor1_Mod…
128     2   551    23 mcc     multiclass 0.3663    10 0.03261 Preprocessor1_Mod…
129     3   659    34 mcc     multiclass 0.3663    10 0.02525 Preprocessor1_Mod…
130     3   662    39 mcc     multiclass 0.3663    10 0.03106 Preprocessor1_Mod…
131     3  1248    27 mcc     multiclass 0.3662    10 0.03006 Preprocessor1_Mod…
132     3  1113    34 mcc     multiclass 0.3661    10 0.02861 Preprocessor1_Mod…
133     3   650    34 mcc     multiclass 0.3659    10 0.02985 Preprocessor1_Mod…
134     2  1195    33 mcc     multiclass 0.3659    10 0.02943 Preprocessor1_Mod…
135     3   480    33 mcc     multiclass 0.3659    10 0.02941 Preprocessor1_Mod…
136     3   693    29 mcc     multiclass 0.3658    10 0.02850 Preprocessor1_Mod…
137     2   536    29 mcc     multiclass 0.3658    10 0.02366 Preprocessor1_Mod…
138     3  1358    35 mcc     multiclass 0.3656    10 0.02762 Preprocessor1_Mod…
139     2   824    30 mcc     multiclass 0.3656    10 0.02861 Preprocessor1_Mod…
140     2   468    38 mcc     multiclass 0.3656    10 0.03942 Preprocessor1_Mod…
141     2   709    37 mcc     multiclass 0.3656    10 0.03732 Preprocessor1_Mod…
142     3   844    23 mcc     multiclass 0.3655    10 0.02928 Preprocessor1_Mod…
143     2   884    24 mcc     multiclass 0.3655    10 0.02851 Preprocessor1_Mod…
144     2   579    25 mcc     multiclass 0.3655    10 0.02863 Preprocessor1_Mod…
145     3  1393    29 mcc     multiclass 0.3654    10 0.02815 Preprocessor1_Mod…
146     2   537    33 mcc     multiclass 0.3654    10 0.03460 Preprocessor1_Mod…
147     2  1039    34 mcc     multiclass 0.3654    10 0.02577 Preprocessor1_Mod…
148     2   890    38 mcc     multiclass 0.3654    10 0.03418 Preprocessor1_Mod…
149     3   835    28 mcc     multiclass 0.3653    10 0.02973 Preprocessor1_Mod…
150     3  1009    23 mcc     multiclass 0.3653    10 0.02906 Preprocessor1_Mod…
151     3  1339    26 mcc     multiclass 0.3653    10 0.02967 Preprocessor1_Mod…
152     2  1264    40 mcc     multiclass 0.3653    10 0.03106 Preprocessor1_Mod…
153     2   990    17 mcc     multiclass 0.3653    10 0.02995 Preprocessor1_Mod…
154     3   997    27 mcc     multiclass 0.3653    10 0.02419 Preprocessor1_Mod…
155     2  1495    25 mcc     multiclass 0.3653    10 0.02884 Preprocessor1_Mod…
156     2  1219    14 mcc     multiclass 0.3653    10 0.02985 Preprocessor1_Mod…
157     2   743    29 mcc     multiclass 0.3652    10 0.02764 Preprocessor1_Mod…
158     2  1426    36 mcc     multiclass 0.3652    10 0.03943 Preprocessor1_Mod…
159     2  1395    30 mcc     multiclass 0.3651    10 0.03268 Preprocessor1_Mod…
160     3  1019    38 mcc     multiclass 0.3651    10 0.03194 Preprocessor1_Mod…
161     3   939    32 mcc     multiclass 0.3651    10 0.03208 Preprocessor1_Mod…
162     3  1402    31 mcc     multiclass 0.3651    10 0.03208 Preprocessor1_Mod…
163     2  1454    25 mcc     multiclass 0.3651    10 0.03027 Preprocessor1_Mod…
164     2  1240    36 mcc     multiclass 0.3651    10 0.02937 Preprocessor1_Mod…
165     2   903    19 mcc     multiclass 0.3649    10 0.03290 Preprocessor1_Mod…
166     2   758    23 mcc     multiclass 0.3649    10 0.03227 Preprocessor1_Mod…
167     2   839    20 mcc     multiclass 0.3649    10 0.02615 Preprocessor1_Mod…
168     2   956    31 mcc     multiclass 0.3649    10 0.03324 Preprocessor1_Mod…
169     3  1376    23 mcc     multiclass 0.3648    10 0.02986 Preprocessor1_Mod…
170     2  1078    39 mcc     multiclass 0.3648    10 0.03596 Preprocessor1_Mod…
171     2   424    15 mcc     multiclass 0.3648    10 0.02559 Preprocessor1_Mod…
172     2  1378    32 mcc     multiclass 0.3648    10 0.03259 Preprocessor1_Mod…
173     2  1420    25 mcc     multiclass 0.3648    10 0.02908 Preprocessor1_Mod…
174     2  1014    21 mcc     multiclass 0.3648    10 0.02873 Preprocessor1_Mod…
175     2   472    34 mcc     multiclass 0.3648    10 0.02825 Preprocessor1_Mod…
176     2   966    17 mcc     multiclass 0.3647    10 0.02591 Preprocessor1_Mod…
177     2   651    11 mcc     multiclass 0.3647    10 0.02920 Preprocessor1_Mod…
178     2  1194    26 mcc     multiclass 0.3647    10 0.02838 Preprocessor1_Mod…
179     2  1490    23 mcc     multiclass 0.3646    10 0.02618 Preprocessor1_Mod…
180     2   807    23 mcc     multiclass 0.3646    10 0.02597 Preprocessor1_Mod…
181     3   731    36 mcc     multiclass 0.3646    10 0.02936 Preprocessor1_Mod…
182     2   992    19 mcc     multiclass 0.3645    10 0.02560 Preprocessor1_Mod…
183     2  1354    37 mcc     multiclass 0.3645    10 0.03136 Preprocessor1_Mod…
184     2  1242    18 mcc     multiclass 0.3645    10 0.03238 Preprocessor1_Mod…
185     2  1022    23 mcc     multiclass 0.3644    10 0.03230 Preprocessor1_Mod…
186     2   615    25 mcc     multiclass 0.3644    10 0.03246 Preprocessor1_Mod…
187     2   852    17 mcc     multiclass 0.3643    10 0.02875 Preprocessor1_Mod…
188     2   478    17 mcc     multiclass 0.3643    10 0.03498 Preprocessor1_Mod…
189     2   796    21 mcc     multiclass 0.3643    10 0.02721 Preprocessor1_Mod…
190     2  1261    17 mcc     multiclass 0.3643    10 0.03246 Preprocessor1_Mod…
191     2  1039    19 mcc     multiclass 0.3640    10 0.02610 Preprocessor1_Mod…
192     2  1348    20 mcc     multiclass 0.3640    10 0.02799 Preprocessor1_Mod…
193     2   940    16 mcc     multiclass 0.3638    10 0.02556 Preprocessor1_Mod…
194     2   783    22 mcc     multiclass 0.3637    10 0.03048 Preprocessor1_Mod…
195     2  1064    24 mcc     multiclass 0.3636    10 0.02912 Preprocessor1_Mod…
196     2  1429    22 mcc     multiclass 0.3634    10 0.02847 Preprocessor1_Mod…
197     3  1110    37 mcc     multiclass 0.3626    10 0.02794 Preprocessor1_Mod…
198     3   915    37 mcc     multiclass 0.3626    10 0.02914 Preprocessor1_Mod…
199     4   566    34 mcc     multiclass 0.3625    10 0.02378 Preprocessor1_Mod…
200     3  1047    37 mcc     multiclass 0.3624    10 0.03139 Preprocessor1_Mod…

Efikasnost - GOD_2021_2022

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.6543 0.4213
2 precision   macro       0.7305 0.3985
3 spec        macro       0.8993 0.8287
4 accuracy    multiclass  0.7124 0.5   
5 f_meas      macro       0.6573 0.3973
6 mcc         multiclass  0.6100 0.3070
7 kap         multiclass  0.5975 0.2996
8 roc_auc     hand_till   0.8871 0.7266
9 mn_log_loss multiclass  0.8327 1.088 

Confusion matrix

Column 2

ROC curve

Gain curve

Važnost prediktora - GOD_2021_2022

Columnn 1

Gini

permutacija

Column 2

Boruta

Boruta (history)

Usporedba modela

Column 1

Metrike: Model_2021 na podacima iz GOD_2021

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.6543 0.4213
2 precision   macro       0.7305 0.3985
3 spec        macro       0.8993 0.8287
4 accuracy    multiclass  0.7124 0.5   
5 f_meas      macro       0.6573 0.3973
6 mcc         multiclass  0.6100 0.3070
7 kap         multiclass  0.5975 0.2996
8 roc_auc     hand_till   0.8871 0.7266
9 mn_log_loss multiclass  0.8327 1.088 

Confusion matrix: Model_2021 na testnim podacima iz GOD_2021

Column 2

Metrike: Model_2021 na podacima iz GOD_2022

# A tibble: 9 × 3
  .metric     .estimator .estimate
  <chr>       <chr>          <dbl>
1 sens        macro         0.4547
2 precision   macro         0.3984
3 spec        macro         0.8180
4 accuracy    multiclass    0.4461
5 f_meas      macro         0.3493
6 mcc         multiclass    0.3000
7 kap         multiclass    0.2642
8 roc_auc     hand_till     0.7234
9 mn_log_loss multiclass    1.200 

Confusion matrix: Model_2021 na podacima iz GOD_2022

Opis modela

Opis modela - redovni studenti koji su pisali esej

Prediktori

  • KVIZ - suma bodova na kvizovima
  • DZ - suma bodova na domaćim zadaćama
  • KOL1 - broj bodova na prvom kolokviju
  • KOL2 - broj bodova na drugom kolokviju
  • KOL3 - broj bodova na trećem kolokviju

Response - Klasifikacija studenata na temelju broja bodova eseju.

  • 1 - ako je na eseju ukupni broj bodova unutar intervala [0, 2.5]
  • 2 - ako je na eseju ukupni broj bodova unutar intervala (2.5, 5]
  • 3 - ako je na eseju ukupni broj bodova unutar intervala (5, 7.5]
  • 4 - ako je na eseju ukupni broj bodova unutar intervala (7.5, 10]

Hiperparametri - za odabir optimalne kombinacije hiperparametara napravljen je cross-validation s 10 kutija pri čemu je na slučajni način isprobano 1000 kombinacija hiperparametara mtry, min_n i trees. Najbolji model je odabran s obzirom na roc_auc metriku.

  • mtry - uzimane su vrijednosti iz skupa {2, 3, 4}
  • trees - uzimani su prirodni brojevi između 400 i 1500
  • min_n - uzimani su prirodni brojevi između 2 i 40.

Hiperparametri - GOD 2022_2023

Column 1

Testirani hiperparametri - GOD 2022 / 2023

Column 2

200 najboljih modela za roc_auc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     2   487    38 roc_auc hand_till  0.7065    10 0.02583 Preprocessor1_Mod…
  2     2   715    35 roc_auc hand_till  0.7001    10 0.02392 Preprocessor1_Mod…
  3     4  1070    40 roc_auc hand_till  0.7000    10 0.02670 Preprocessor1_Mod…
  4     4  1270    35 roc_auc hand_till  0.6998    10 0.02763 Preprocessor1_Mod…
  5     3   434    33 roc_auc hand_till  0.6992    10 0.02451 Preprocessor1_Mod…
  6     2  1419    39 roc_auc hand_till  0.6992    10 0.02327 Preprocessor1_Mod…
  7     3   409    28 roc_auc hand_till  0.6989    10 0.02418 Preprocessor1_Mod…
  8     4   579    39 roc_auc hand_till  0.6988    10 0.02706 Preprocessor1_Mod…
  9     4   928    31 roc_auc hand_till  0.6988    10 0.02648 Preprocessor1_Mod…
 10     2   597    26 roc_auc hand_till  0.6987    10 0.02500 Preprocessor1_Mod…
 11     4   780    38 roc_auc hand_till  0.6983    10 0.02855 Preprocessor1_Mod…
 12     4  1045    38 roc_auc hand_till  0.6983    10 0.02695 Preprocessor1_Mod…
 13     3   616    36 roc_auc hand_till  0.6981    10 0.02421 Preprocessor1_Mod…
 14     2  1278    38 roc_auc hand_till  0.6981    10 0.02433 Preprocessor1_Mod…
 15     3  1449    34 roc_auc hand_till  0.6980    10 0.02487 Preprocessor1_Mod…
 16     3  1396    40 roc_auc hand_till  0.6980    10 0.02590 Preprocessor1_Mod…
 17     3   908    32 roc_auc hand_till  0.6977    10 0.02503 Preprocessor1_Mod…
 18     4   994    30 roc_auc hand_till  0.6976    10 0.02657 Preprocessor1_Mod…
 19     4   415    32 roc_auc hand_till  0.6975    10 0.02793 Preprocessor1_Mod…
 20     4  1364    36 roc_auc hand_till  0.6973    10 0.02833 Preprocessor1_Mod…
 21     3   413    31 roc_auc hand_till  0.6972    10 0.02749 Preprocessor1_Mod…
 22     4  1356    35 roc_auc hand_till  0.6971    10 0.02649 Preprocessor1_Mod…
 23     4  1444    36 roc_auc hand_till  0.6971    10 0.02674 Preprocessor1_Mod…
 24     4   956    31 roc_auc hand_till  0.6970    10 0.02747 Preprocessor1_Mod…
 25     3  1383    24 roc_auc hand_till  0.6965    10 0.02499 Preprocessor1_Mod…
 26     2  1039    37 roc_auc hand_till  0.6964    10 0.02456 Preprocessor1_Mod…
 27     4   769    29 roc_auc hand_till  0.6964    10 0.02743 Preprocessor1_Mod…
 28     4  1294    26 roc_auc hand_till  0.6963    10 0.02569 Preprocessor1_Mod…
 29     2   849    32 roc_auc hand_till  0.6963    10 0.02531 Preprocessor1_Mod…
 30     2  1372    40 roc_auc hand_till  0.6962    10 0.02535 Preprocessor1_Mod…
 31     4  1191    33 roc_auc hand_till  0.6962    10 0.02679 Preprocessor1_Mod…
 32     4   730    22 roc_auc hand_till  0.6962    10 0.02519 Preprocessor1_Mod…
 33     3   749    38 roc_auc hand_till  0.6961    10 0.02575 Preprocessor1_Mod…
 34     3   435    27 roc_auc hand_till  0.6961    10 0.02501 Preprocessor1_Mod…
 35     3  1251    29 roc_auc hand_till  0.6960    10 0.02488 Preprocessor1_Mod…
 36     4   488    32 roc_auc hand_till  0.6960    10 0.02564 Preprocessor1_Mod…
 37     4   932    26 roc_auc hand_till  0.6959    10 0.02374 Preprocessor1_Mod…
 38     2   890    23 roc_auc hand_till  0.6959    10 0.02177 Preprocessor1_Mod…
 39     2  1165    34 roc_auc hand_till  0.6958    10 0.02419 Preprocessor1_Mod…
 40     4   476    34 roc_auc hand_till  0.6957    10 0.02786 Preprocessor1_Mod…
 41     4  1164    27 roc_auc hand_till  0.6957    10 0.02522 Preprocessor1_Mod…
 42     4  1429    19 roc_auc hand_till  0.6957    10 0.02449 Preprocessor1_Mod…
 43     4  1117    30 roc_auc hand_till  0.6956    10 0.02752 Preprocessor1_Mod…
 44     2   840    37 roc_auc hand_till  0.6956    10 0.02523 Preprocessor1_Mod…
 45     3   949    28 roc_auc hand_till  0.6956    10 0.02613 Preprocessor1_Mod…
 46     4  1331    36 roc_auc hand_till  0.6956    10 0.02764 Preprocessor1_Mod…
 47     2  1431    36 roc_auc hand_till  0.6955    10 0.02313 Preprocessor1_Mod…
 48     3   759    33 roc_auc hand_till  0.6955    10 0.02767 Preprocessor1_Mod…
 49     4   698    35 roc_auc hand_till  0.6954    10 0.02638 Preprocessor1_Mod…
 50     3   402    28 roc_auc hand_till  0.6954    10 0.02500 Preprocessor1_Mod…
 51     4  1165    37 roc_auc hand_till  0.6954    10 0.02739 Preprocessor1_Mod…
 52     2  1358    38 roc_auc hand_till  0.6954    10 0.02578 Preprocessor1_Mod…
 53     3  1490    24 roc_auc hand_till  0.6953    10 0.02466 Preprocessor1_Mod…
 54     3   943    40 roc_auc hand_till  0.6952    10 0.02799 Preprocessor1_Mod…
 55     3  1282    27 roc_auc hand_till  0.6952    10 0.02561 Preprocessor1_Mod…
 56     3   588    40 roc_auc hand_till  0.6951    10 0.02580 Preprocessor1_Mod…
 57     4   970    24 roc_auc hand_till  0.6951    10 0.02561 Preprocessor1_Mod…
 58     3   998    38 roc_auc hand_till  0.6951    10 0.02606 Preprocessor1_Mod…
 59     4  1149    33 roc_auc hand_till  0.6951    10 0.02738 Preprocessor1_Mod…
 60     4  1261    39 roc_auc hand_till  0.6950    10 0.02675 Preprocessor1_Mod…
 61     3   929    24 roc_auc hand_till  0.6950    10 0.02250 Preprocessor1_Mod…
 62     4   864    28 roc_auc hand_till  0.6949    10 0.02577 Preprocessor1_Mod…
 63     4  1450    35 roc_auc hand_till  0.6949    10 0.02821 Preprocessor1_Mod…
 64     2   424    20 roc_auc hand_till  0.6949    10 0.02185 Preprocessor1_Mod…
 65     4  1338    22 roc_auc hand_till  0.6949    10 0.02491 Preprocessor1_Mod…
 66     2   828    37 roc_auc hand_till  0.6948    10 0.02450 Preprocessor1_Mod…
 67     4   847    21 roc_auc hand_till  0.6948    10 0.02459 Preprocessor1_Mod…
 68     4  1149    23 roc_auc hand_till  0.6948    10 0.02524 Preprocessor1_Mod…
 69     2   531    40 roc_auc hand_till  0.6948    10 0.02249 Preprocessor1_Mod…
 70     3   799    36 roc_auc hand_till  0.6947    10 0.02664 Preprocessor1_Mod…
 71     3   785    30 roc_auc hand_till  0.6946    10 0.02400 Preprocessor1_Mod…
 72     4  1044    36 roc_auc hand_till  0.6946    10 0.02654 Preprocessor1_Mod…
 73     3   605    16 roc_auc hand_till  0.6944    10 0.02766 Preprocessor1_Mod…
 74     3   849    21 roc_auc hand_till  0.6944    10 0.02555 Preprocessor1_Mod…
 75     4  1008    27 roc_auc hand_till  0.6943    10 0.02526 Preprocessor1_Mod…
 76     4  1425    32 roc_auc hand_till  0.6943    10 0.02662 Preprocessor1_Mod…
 77     3   650    37 roc_auc hand_till  0.6943    10 0.02720 Preprocessor1_Mod…
 78     4  1109    35 roc_auc hand_till  0.6942    10 0.02683 Preprocessor1_Mod…
 79     2   760    38 roc_auc hand_till  0.6941    10 0.02349 Preprocessor1_Mod…
 80     4   770    29 roc_auc hand_till  0.6940    10 0.02532 Preprocessor1_Mod…
 81     3   453    26 roc_auc hand_till  0.6940    10 0.02584 Preprocessor1_Mod…
 82     2   526    34 roc_auc hand_till  0.6939    10 0.02466 Preprocessor1_Mod…
 83     4  1133    24 roc_auc hand_till  0.6939    10 0.02653 Preprocessor1_Mod…
 84     2   475    33 roc_auc hand_till  0.6939    10 0.02403 Preprocessor1_Mod…
 85     2  1252    23 roc_auc hand_till  0.6938    10 0.02410 Preprocessor1_Mod…
 86     4   459    32 roc_auc hand_till  0.6938    10 0.02649 Preprocessor1_Mod…
 87     4   420    26 roc_auc hand_till  0.6938    10 0.02615 Preprocessor1_Mod…
 88     3   483    34 roc_auc hand_till  0.6938    10 0.02608 Preprocessor1_Mod…
 89     3   945    35 roc_auc hand_till  0.6937    10 0.02707 Preprocessor1_Mod…
 90     2  1350    30 roc_auc hand_till  0.6936    10 0.02430 Preprocessor1_Mod…
 91     3   405    17 roc_auc hand_till  0.6936    10 0.02342 Preprocessor1_Mod…
 92     4   740    40 roc_auc hand_till  0.6936    10 0.02643 Preprocessor1_Mod…
 93     3  1019    36 roc_auc hand_till  0.6936    10 0.02732 Preprocessor1_Mod…
 94     2  1247    28 roc_auc hand_till  0.6935    10 0.02534 Preprocessor1_Mod…
 95     2  1093    33 roc_auc hand_till  0.6935    10 0.02518 Preprocessor1_Mod…
 96     2  1148    28 roc_auc hand_till  0.6935    10 0.02334 Preprocessor1_Mod…
 97     2  1460    26 roc_auc hand_till  0.6934    10 0.02545 Preprocessor1_Mod…
 98     3  1365    34 roc_auc hand_till  0.6934    10 0.02558 Preprocessor1_Mod…
 99     3   706    31 roc_auc hand_till  0.6934    10 0.02538 Preprocessor1_Mod…
100     2  1130    38 roc_auc hand_till  0.6934    10 0.02507 Preprocessor1_Mod…
101     4  1189    35 roc_auc hand_till  0.6933    10 0.02772 Preprocessor1_Mod…
102     4   912    40 roc_auc hand_till  0.6933    10 0.02794 Preprocessor1_Mod…
103     3  1465    34 roc_auc hand_till  0.6932    10 0.02600 Preprocessor1_Mod…
104     3   570    23 roc_auc hand_till  0.6932    10 0.02086 Preprocessor1_Mod…
105     3  1021    32 roc_auc hand_till  0.6932    10 0.02573 Preprocessor1_Mod…
106     4  1066    26 roc_auc hand_till  0.6931    10 0.02542 Preprocessor1_Mod…
107     2   417    40 roc_auc hand_till  0.6931    10 0.02534 Preprocessor1_Mod…
108     4  1092    20 roc_auc hand_till  0.6931    10 0.02365 Preprocessor1_Mod…
109     3   744    29 roc_auc hand_till  0.6931    10 0.02509 Preprocessor1_Mod…
110     4   643    37 roc_auc hand_till  0.6931    10 0.02742 Preprocessor1_Mod…
111     4  1109    32 roc_auc hand_till  0.6931    10 0.02691 Preprocessor1_Mod…
112     4   505    29 roc_auc hand_till  0.6930    10 0.02407 Preprocessor1_Mod…
113     4  1224    36 roc_auc hand_till  0.6930    10 0.02693 Preprocessor1_Mod…
114     2   892    38 roc_auc hand_till  0.6930    10 0.02500 Preprocessor1_Mod…
115     3   568    30 roc_auc hand_till  0.6930    10 0.02538 Preprocessor1_Mod…
116     3  1428    31 roc_auc hand_till  0.6930    10 0.02531 Preprocessor1_Mod…
117     3   564    28 roc_auc hand_till  0.6930    10 0.02539 Preprocessor1_Mod…
118     4  1259    35 roc_auc hand_till  0.6929    10 0.02737 Preprocessor1_Mod…
119     2   932    29 roc_auc hand_till  0.6929    10 0.02444 Preprocessor1_Mod…
120     2   612    29 roc_auc hand_till  0.6929    10 0.02353 Preprocessor1_Mod…
121     3   476    33 roc_auc hand_till  0.6929    10 0.02711 Preprocessor1_Mod…
122     3  1189    24 roc_auc hand_till  0.6929    10 0.02685 Preprocessor1_Mod…
123     3  1314    30 roc_auc hand_till  0.6929    10 0.02619 Preprocessor1_Mod…
124     2  1068    25 roc_auc hand_till  0.6928    10 0.02515 Preprocessor1_Mod…
125     3  1207    33 roc_auc hand_till  0.6928    10 0.02647 Preprocessor1_Mod…
126     4  1006    34 roc_auc hand_till  0.6928    10 0.02513 Preprocessor1_Mod…
127     4   585    24 roc_auc hand_till  0.6928    10 0.02638 Preprocessor1_Mod…
128     2   404    28 roc_auc hand_till  0.6928    10 0.02496 Preprocessor1_Mod…
129     2  1150    24 roc_auc hand_till  0.6928    10 0.02279 Preprocessor1_Mod…
130     2  1259    37 roc_auc hand_till  0.6927    10 0.02469 Preprocessor1_Mod…
131     4  1459    21 roc_auc hand_till  0.6927    10 0.02536 Preprocessor1_Mod…
132     4   405    25 roc_auc hand_till  0.6927    10 0.02654 Preprocessor1_Mod…
133     4  1476    27 roc_auc hand_till  0.6927    10 0.02673 Preprocessor1_Mod…
134     2   866    34 roc_auc hand_till  0.6927    10 0.02337 Preprocessor1_Mod…
135     4  1172    30 roc_auc hand_till  0.6927    10 0.02762 Preprocessor1_Mod…
136     3   807    38 roc_auc hand_till  0.6926    10 0.02717 Preprocessor1_Mod…
137     2  1232    26 roc_auc hand_till  0.6926    10 0.02209 Preprocessor1_Mod…
138     2   819     9 roc_auc hand_till  0.6926    10 0.02431 Preprocessor1_Mod…
139     4   910    35 roc_auc hand_till  0.6926    10 0.02887 Preprocessor1_Mod…
140     2   659    37 roc_auc hand_till  0.6926    10 0.02530 Preprocessor1_Mod…
141     4   877    24 roc_auc hand_till  0.6925    10 0.02773 Preprocessor1_Mod…
142     2  1466    37 roc_auc hand_till  0.6925    10 0.02416 Preprocessor1_Mod…
143     3   873    31 roc_auc hand_till  0.6925    10 0.02546 Preprocessor1_Mod…
144     4  1361    28 roc_auc hand_till  0.6925    10 0.02651 Preprocessor1_Mod…
145     4  1260    39 roc_auc hand_till  0.6925    10 0.02805 Preprocessor1_Mod…
146     3  1329    20 roc_auc hand_till  0.6924    10 0.02317 Preprocessor1_Mod…
147     4   507    18 roc_auc hand_till  0.6924    10 0.02447 Preprocessor1_Mod…
148     4   468    31 roc_auc hand_till  0.6923    10 0.02454 Preprocessor1_Mod…
149     2   824    30 roc_auc hand_till  0.6923    10 0.02460 Preprocessor1_Mod…
150     4   492    29 roc_auc hand_till  0.6923    10 0.02573 Preprocessor1_Mod…
151     3   874    31 roc_auc hand_till  0.6923    10 0.02638 Preprocessor1_Mod…
152     3  1064    31 roc_auc hand_till  0.6923    10 0.02482 Preprocessor1_Mod…
153     4  1189    32 roc_auc hand_till  0.6922    10 0.02678 Preprocessor1_Mod…
154     3   639    29 roc_auc hand_till  0.6922    10 0.02526 Preprocessor1_Mod…
155     2   775    39 roc_auc hand_till  0.6922    10 0.02321 Preprocessor1_Mod…
156     3  1094    31 roc_auc hand_till  0.6922    10 0.02662 Preprocessor1_Mod…
157     3   594    33 roc_auc hand_till  0.6922    10 0.02667 Preprocessor1_Mod…
158     3   519    13 roc_auc hand_till  0.6922    10 0.02306 Preprocessor1_Mod…
159     3  1089    37 roc_auc hand_till  0.6921    10 0.02560 Preprocessor1_Mod…
160     2  1219    23 roc_auc hand_till  0.6921    10 0.02321 Preprocessor1_Mod…
161     3  1067    27 roc_auc hand_till  0.6921    10 0.02529 Preprocessor1_Mod…
162     2  1478    39 roc_auc hand_till  0.6920    10 0.02425 Preprocessor1_Mod…
163     3  1028    25 roc_auc hand_till  0.6920    10 0.02434 Preprocessor1_Mod…
164     3  1178    17 roc_auc hand_till  0.6920    10 0.02403 Preprocessor1_Mod…
165     3  1092    20 roc_auc hand_till  0.6920    10 0.02102 Preprocessor1_Mod…
166     2  1414    37 roc_auc hand_till  0.6919    10 0.02461 Preprocessor1_Mod…
167     2  1092    39 roc_auc hand_till  0.6919    10 0.02369 Preprocessor1_Mod…
168     2  1100    39 roc_auc hand_till  0.6919    10 0.02533 Preprocessor1_Mod…
169     3  1499    37 roc_auc hand_till  0.6919    10 0.02678 Preprocessor1_Mod…
170     3  1348    36 roc_auc hand_till  0.6918    10 0.02545 Preprocessor1_Mod…
171     4  1032    28 roc_auc hand_till  0.6918    10 0.02598 Preprocessor1_Mod…
172     3   420    36 roc_auc hand_till  0.6918    10 0.02386 Preprocessor1_Mod…
173     3  1169    30 roc_auc hand_till  0.6918    10 0.02482 Preprocessor1_Mod…
174     4  1131    23 roc_auc hand_till  0.6917    10 0.02630 Preprocessor1_Mod…
175     4  1368    34 roc_auc hand_till  0.6917    10 0.02695 Preprocessor1_Mod…
176     3  1098    30 roc_auc hand_till  0.6917    10 0.02757 Preprocessor1_Mod…
177     4  1057    20 roc_auc hand_till  0.6917    10 0.02324 Preprocessor1_Mod…
178     3   515    32 roc_auc hand_till  0.6917    10 0.02617 Preprocessor1_Mod…
179     2   809     6 roc_auc hand_till  0.6916    10 0.02963 Preprocessor1_Mod…
180     3  1477    30 roc_auc hand_till  0.6916    10 0.02485 Preprocessor1_Mod…
181     4   854    30 roc_auc hand_till  0.6916    10 0.02594 Preprocessor1_Mod…
182     2   914    34 roc_auc hand_till  0.6916    10 0.02624 Preprocessor1_Mod…
183     4  1489    37 roc_auc hand_till  0.6916    10 0.02852 Preprocessor1_Mod…
184     3  1155    36 roc_auc hand_till  0.6916    10 0.02621 Preprocessor1_Mod…
185     3   894    37 roc_auc hand_till  0.6916    10 0.02652 Preprocessor1_Mod…
186     3   779    25 roc_auc hand_till  0.6915    10 0.02516 Preprocessor1_Mod…
187     2  1284    22 roc_auc hand_till  0.6915    10 0.02230 Preprocessor1_Mod…
188     4   573    23 roc_auc hand_till  0.6915    10 0.02305 Preprocessor1_Mod…
189     2   729    37 roc_auc hand_till  0.6914    10 0.02643 Preprocessor1_Mod…
190     2  1315    23 roc_auc hand_till  0.6914    10 0.02280 Preprocessor1_Mod…
191     2  1282    35 roc_auc hand_till  0.6914    10 0.02430 Preprocessor1_Mod…
192     3   556    26 roc_auc hand_till  0.6914    10 0.02816 Preprocessor1_Mod…
193     2   789    39 roc_auc hand_till  0.6914    10 0.02471 Preprocessor1_Mod…
194     4   432    29 roc_auc hand_till  0.6914    10 0.02770 Preprocessor1_Mod…
195     4   612    23 roc_auc hand_till  0.6914    10 0.02515 Preprocessor1_Mod…
196     3   955    19 roc_auc hand_till  0.6913    10 0.02233 Preprocessor1_Mod…
197     2  1092    36 roc_auc hand_till  0.6912    10 0.02463 Preprocessor1_Mod…
198     3   557    19 roc_auc hand_till  0.6912    10 0.02874 Preprocessor1_Mod…
199     2  1321    36 roc_auc hand_till  0.6912    10 0.02621 Preprocessor1_Mod…
200     3   716    34 roc_auc hand_till  0.6912    10 0.02441 Preprocessor1_Mod…

200 najboljih modela za mcc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     3   617     5 mcc     multiclass 0.2702    10 0.04830 Preprocessor1_Mod…
  2     4   456     2 mcc     multiclass 0.2660    10 0.03729 Preprocessor1_Mod…
  3     3  1192     2 mcc     multiclass 0.2632    10 0.04003 Preprocessor1_Mod…
  4     4  1413    10 mcc     multiclass 0.2629    10 0.04236 Preprocessor1_Mod…
  5     4  1446    10 mcc     multiclass 0.2608    10 0.04634 Preprocessor1_Mod…
  6     4   580     3 mcc     multiclass 0.2582    10 0.04566 Preprocessor1_Mod…
  7     4  1089    12 mcc     multiclass 0.2554    10 0.04087 Preprocessor1_Mod…
  8     4  1303     9 mcc     multiclass 0.2549    10 0.04711 Preprocessor1_Mod…
  9     4   761     4 mcc     multiclass 0.2548    10 0.04471 Preprocessor1_Mod…
 10     3   432     2 mcc     multiclass 0.2546    10 0.03074 Preprocessor1_Mod…
 11     4   954     4 mcc     multiclass 0.2546    10 0.04554 Preprocessor1_Mod…
 12     4  1429    10 mcc     multiclass 0.2543    10 0.05362 Preprocessor1_Mod…
 13     4   499     6 mcc     multiclass 0.2541    10 0.04457 Preprocessor1_Mod…
 14     4   745     7 mcc     multiclass 0.2531    10 0.04902 Preprocessor1_Mod…
 15     4   571    12 mcc     multiclass 0.2506    10 0.05677 Preprocessor1_Mod…
 16     4   531     2 mcc     multiclass 0.2500    10 0.04258 Preprocessor1_Mod…
 17     4   942     2 mcc     multiclass 0.2492    10 0.04337 Preprocessor1_Mod…
 18     4  1493     5 mcc     multiclass 0.2486    10 0.03969 Preprocessor1_Mod…
 19     4  1095     9 mcc     multiclass 0.2480    10 0.03562 Preprocessor1_Mod…
 20     4  1016     5 mcc     multiclass 0.2466    10 0.05146 Preprocessor1_Mod…
 21     3  1179     7 mcc     multiclass 0.2459    10 0.04603 Preprocessor1_Mod…
 22     4  1373    10 mcc     multiclass 0.2455    10 0.04165 Preprocessor1_Mod…
 23     2   604     3 mcc     multiclass 0.2455    10 0.05320 Preprocessor1_Mod…
 24     3   790     2 mcc     multiclass 0.2452    10 0.04666 Preprocessor1_Mod…
 25     4   610     8 mcc     multiclass 0.2450    10 0.04543 Preprocessor1_Mod…
 26     3   700     3 mcc     multiclass 0.2445    10 0.04850 Preprocessor1_Mod…
 27     4  1418    10 mcc     multiclass 0.2444    10 0.03734 Preprocessor1_Mod…
 28     3   482     4 mcc     multiclass 0.2441    10 0.04408 Preprocessor1_Mod…
 29     4  1380     4 mcc     multiclass 0.2437    10 0.04992 Preprocessor1_Mod…
 30     4   472    13 mcc     multiclass 0.2432    10 0.04850 Preprocessor1_Mod…
 31     4  1154    11 mcc     multiclass 0.2431    10 0.04266 Preprocessor1_Mod…
 32     4  1266     9 mcc     multiclass 0.2431    10 0.05500 Preprocessor1_Mod…
 33     4  1109    10 mcc     multiclass 0.2427    10 0.03659 Preprocessor1_Mod…
 34     4  1061     2 mcc     multiclass 0.2426    10 0.03838 Preprocessor1_Mod…
 35     4   584     2 mcc     multiclass 0.2423    10 0.02473 Preprocessor1_Mod…
 36     4   430     7 mcc     multiclass 0.2422    10 0.05030 Preprocessor1_Mod…
 37     3  1100    10 mcc     multiclass 0.2421    10 0.03970 Preprocessor1_Mod…
 38     4   767     7 mcc     multiclass 0.2417    10 0.05193 Preprocessor1_Mod…
 39     4  1458     4 mcc     multiclass 0.2416    10 0.03893 Preprocessor1_Mod…
 40     4  1492     4 mcc     multiclass 0.2410    10 0.03836 Preprocessor1_Mod…
 41     4   774     6 mcc     multiclass 0.2408    10 0.04064 Preprocessor1_Mod…
 42     4  1037     3 mcc     multiclass 0.2405    10 0.03543 Preprocessor1_Mod…
 43     4   767     9 mcc     multiclass 0.2393    10 0.04085 Preprocessor1_Mod…
 44     3   493     4 mcc     multiclass 0.2393    10 0.04359 Preprocessor1_Mod…
 45     4   831    15 mcc     multiclass 0.2390    10 0.06551 Preprocessor1_Mod…
 46     4   791     4 mcc     multiclass 0.2390    10 0.04206 Preprocessor1_Mod…
 47     3   747    11 mcc     multiclass 0.2386    10 0.04298 Preprocessor1_Mod…
 48     3   948    12 mcc     multiclass 0.2383    10 0.05731 Preprocessor1_Mod…
 49     4   595     9 mcc     multiclass 0.2383    10 0.04793 Preprocessor1_Mod…
 50     4   791    13 mcc     multiclass 0.2371    10 0.04345 Preprocessor1_Mod…
 51     4   620     2 mcc     multiclass 0.2370    10 0.04722 Preprocessor1_Mod…
 52     2  1073     3 mcc     multiclass 0.2369    10 0.05354 Preprocessor1_Mod…
 53     4   695     9 mcc     multiclass 0.2367    10 0.05229 Preprocessor1_Mod…
 54     4   822     4 mcc     multiclass 0.2365    10 0.05035 Preprocessor1_Mod…
 55     4  1061     5 mcc     multiclass 0.2365    10 0.04267 Preprocessor1_Mod…
 56     4  1471    14 mcc     multiclass 0.2359    10 0.03984 Preprocessor1_Mod…
 57     4   712     9 mcc     multiclass 0.2359    10 0.04466 Preprocessor1_Mod…
 58     4  1166     5 mcc     multiclass 0.2357    10 0.03909 Preprocessor1_Mod…
 59     3   425     2 mcc     multiclass 0.2355    10 0.05538 Preprocessor1_Mod…
 60     2   682     2 mcc     multiclass 0.2352    10 0.06152 Preprocessor1_Mod…
 61     4  1264    11 mcc     multiclass 0.2350    10 0.04424 Preprocessor1_Mod…
 62     3   426     9 mcc     multiclass 0.2348    10 0.07095 Preprocessor1_Mod…
 63     4  1386     5 mcc     multiclass 0.2347    10 0.04131 Preprocessor1_Mod…
 64     4   699     6 mcc     multiclass 0.2345    10 0.04139 Preprocessor1_Mod…
 65     4  1332     8 mcc     multiclass 0.2345    10 0.04305 Preprocessor1_Mod…
 66     4  1286    10 mcc     multiclass 0.2336    10 0.04418 Preprocessor1_Mod…
 67     4  1275    12 mcc     multiclass 0.2332    10 0.05129 Preprocessor1_Mod…
 68     4  1105     4 mcc     multiclass 0.2329    10 0.03304 Preprocessor1_Mod…
 69     4   812    13 mcc     multiclass 0.2329    10 0.04693 Preprocessor1_Mod…
 70     2   698     3 mcc     multiclass 0.2329    10 0.06235 Preprocessor1_Mod…
 71     2  1415     2 mcc     multiclass 0.2326    10 0.05791 Preprocessor1_Mod…
 72     3   847     3 mcc     multiclass 0.2323    10 0.04887 Preprocessor1_Mod…
 73     4  1096     3 mcc     multiclass 0.2321    10 0.04734 Preprocessor1_Mod…
 74     3  1449     2 mcc     multiclass 0.2321    10 0.03531 Preprocessor1_Mod…
 75     4  1023    13 mcc     multiclass 0.2320    10 0.04756 Preprocessor1_Mod…
 76     3   951    10 mcc     multiclass 0.2320    10 0.04712 Preprocessor1_Mod…
 77     2   595     3 mcc     multiclass 0.2318    10 0.06011 Preprocessor1_Mod…
 78     4  1355     2 mcc     multiclass 0.2317    10 0.04480 Preprocessor1_Mod…
 79     4  1446     2 mcc     multiclass 0.2316    10 0.03883 Preprocessor1_Mod…
 80     4   744     2 mcc     multiclass 0.2313    10 0.02659 Preprocessor1_Mod…
 81     4  1131    11 mcc     multiclass 0.2304    10 0.05280 Preprocessor1_Mod…
 82     3  1013     8 mcc     multiclass 0.2302    10 0.05600 Preprocessor1_Mod…
 83     4  1242    17 mcc     multiclass 0.2299    10 0.05447 Preprocessor1_Mod…
 84     4   987     4 mcc     multiclass 0.2297    10 0.03907 Preprocessor1_Mod…
 85     2   477     4 mcc     multiclass 0.2296    10 0.05050 Preprocessor1_Mod…
 86     3  1426    12 mcc     multiclass 0.2293    10 0.05553 Preprocessor1_Mod…
 87     4   801    12 mcc     multiclass 0.2288    10 0.04888 Preprocessor1_Mod…
 88     4  1369     9 mcc     multiclass 0.2287    10 0.04803 Preprocessor1_Mod…
 89     3   739    11 mcc     multiclass 0.2286    10 0.05355 Preprocessor1_Mod…
 90     4  1315    20 mcc     multiclass 0.2281    10 0.06352 Preprocessor1_Mod…
 91     4  1110    13 mcc     multiclass 0.2281    10 0.04587 Preprocessor1_Mod…
 92     4   821    12 mcc     multiclass 0.2280    10 0.04649 Preprocessor1_Mod…
 93     4   503    11 mcc     multiclass 0.2278    10 0.04297 Preprocessor1_Mod…
 94     2   789    10 mcc     multiclass 0.2275    10 0.04795 Preprocessor1_Mod…
 95     3   992     4 mcc     multiclass 0.2275    10 0.03598 Preprocessor1_Mod…
 96     4  1279    14 mcc     multiclass 0.2274    10 0.05535 Preprocessor1_Mod…
 97     3  1447     9 mcc     multiclass 0.2274    10 0.05014 Preprocessor1_Mod…
 98     4   566    15 mcc     multiclass 0.2272    10 0.04989 Preprocessor1_Mod…
 99     3   842     6 mcc     multiclass 0.2271    10 0.05195 Preprocessor1_Mod…
100     4  1281     8 mcc     multiclass 0.2264    10 0.03691 Preprocessor1_Mod…
101     3   439     6 mcc     multiclass 0.2262    10 0.04798 Preprocessor1_Mod…
102     4  1404    10 mcc     multiclass 0.2261    10 0.03864 Preprocessor1_Mod…
103     3   670     8 mcc     multiclass 0.2254    10 0.03609 Preprocessor1_Mod…
104     3   537     3 mcc     multiclass 0.2248    10 0.04594 Preprocessor1_Mod…
105     3   492    10 mcc     multiclass 0.2244    10 0.05687 Preprocessor1_Mod…
106     4  1082     6 mcc     multiclass 0.2240    10 0.03667 Preprocessor1_Mod…
107     4   684     5 mcc     multiclass 0.2239    10 0.04204 Preprocessor1_Mod…
108     2  1399     5 mcc     multiclass 0.2239    10 0.05024 Preprocessor1_Mod…
109     4  1062    10 mcc     multiclass 0.2239    10 0.06554 Preprocessor1_Mod…
110     3   957     9 mcc     multiclass 0.2236    10 0.04451 Preprocessor1_Mod…
111     3   994     3 mcc     multiclass 0.2236    10 0.04712 Preprocessor1_Mod…
112     4  1049     4 mcc     multiclass 0.2233    10 0.04038 Preprocessor1_Mod…
113     3   464    20 mcc     multiclass 0.2227    10 0.04905 Preprocessor1_Mod…
114     3  1368    13 mcc     multiclass 0.2227    10 0.05551 Preprocessor1_Mod…
115     4   537     2 mcc     multiclass 0.2224    10 0.04264 Preprocessor1_Mod…
116     2   502     3 mcc     multiclass 0.2216    10 0.05033 Preprocessor1_Mod…
117     4  1321    17 mcc     multiclass 0.2213    10 0.05706 Preprocessor1_Mod…
118     3   511     6 mcc     multiclass 0.2209    10 0.05347 Preprocessor1_Mod…
119     2   719     3 mcc     multiclass 0.2207    10 0.04273 Preprocessor1_Mod…
120     4   904    14 mcc     multiclass 0.2206    10 0.05705 Preprocessor1_Mod…
121     3   446    13 mcc     multiclass 0.2205    10 0.04572 Preprocessor1_Mod…
122     4   919    13 mcc     multiclass 0.2204    10 0.04863 Preprocessor1_Mod…
123     2  1422     7 mcc     multiclass 0.2200    10 0.05164 Preprocessor1_Mod…
124     4   481     7 mcc     multiclass 0.2199    10 0.04667 Preprocessor1_Mod…
125     3  1461     8 mcc     multiclass 0.2199    10 0.05063 Preprocessor1_Mod…
126     3  1062     6 mcc     multiclass 0.2196    10 0.05638 Preprocessor1_Mod…
127     4   835    13 mcc     multiclass 0.2196    10 0.03325 Preprocessor1_Mod…
128     2   991     2 mcc     multiclass 0.2195    10 0.05920 Preprocessor1_Mod…
129     2   546     5 mcc     multiclass 0.2195    10 0.04499 Preprocessor1_Mod…
130     3  1013     9 mcc     multiclass 0.2194    10 0.04256 Preprocessor1_Mod…
131     3   924    11 mcc     multiclass 0.2192    10 0.06206 Preprocessor1_Mod…
132     3   717    10 mcc     multiclass 0.2191    10 0.05714 Preprocessor1_Mod…
133     2   642     7 mcc     multiclass 0.2186    10 0.04419 Preprocessor1_Mod…
134     3   744     8 mcc     multiclass 0.2186    10 0.05331 Preprocessor1_Mod…
135     3  1235     2 mcc     multiclass 0.2184    10 0.04807 Preprocessor1_Mod…
136     4   641    11 mcc     multiclass 0.2181    10 0.03841 Preprocessor1_Mod…
137     3   688     3 mcc     multiclass 0.2180    10 0.05443 Preprocessor1_Mod…
138     2  1196     3 mcc     multiclass 0.2178    10 0.05537 Preprocessor1_Mod…
139     3  1048     3 mcc     multiclass 0.2178    10 0.04648 Preprocessor1_Mod…
140     4   451    10 mcc     multiclass 0.2177    10 0.06664 Preprocessor1_Mod…
141     4   970     8 mcc     multiclass 0.2176    10 0.05116 Preprocessor1_Mod…
142     2  1298     4 mcc     multiclass 0.2174    10 0.06136 Preprocessor1_Mod…
143     2   806     3 mcc     multiclass 0.2173    10 0.05645 Preprocessor1_Mod…
144     2  1195     8 mcc     multiclass 0.2172    10 0.04492 Preprocessor1_Mod…
145     3   476     7 mcc     multiclass 0.2172    10 0.05159 Preprocessor1_Mod…
146     4   650     7 mcc     multiclass 0.2169    10 0.04376 Preprocessor1_Mod…
147     2   425    14 mcc     multiclass 0.2169    10 0.05032 Preprocessor1_Mod…
148     2  1382     2 mcc     multiclass 0.2168    10 0.04682 Preprocessor1_Mod…
149     3  1357    18 mcc     multiclass 0.2167    10 0.05822 Preprocessor1_Mod…
150     3   976     2 mcc     multiclass 0.2166    10 0.03369 Preprocessor1_Mod…
151     4   441    15 mcc     multiclass 0.2166    10 0.04702 Preprocessor1_Mod…
152     2   443     7 mcc     multiclass 0.2164    10 0.05485 Preprocessor1_Mod…
153     4   705    21 mcc     multiclass 0.2161    10 0.05615 Preprocessor1_Mod…
154     4   528    16 mcc     multiclass 0.2159    10 0.05705 Preprocessor1_Mod…
155     2   775     3 mcc     multiclass 0.2159    10 0.05705 Preprocessor1_Mod…
156     3  1154     3 mcc     multiclass 0.2157    10 0.04315 Preprocessor1_Mod…
157     2   996     3 mcc     multiclass 0.2157    10 0.05036 Preprocessor1_Mod…
158     3  1182     2 mcc     multiclass 0.2156    10 0.03628 Preprocessor1_Mod…
159     4   422    13 mcc     multiclass 0.2155    10 0.05870 Preprocessor1_Mod…
160     4  1178     9 mcc     multiclass 0.2153    10 0.05624 Preprocessor1_Mod…
161     3   687    17 mcc     multiclass 0.2150    10 0.05816 Preprocessor1_Mod…
162     3  1438     5 mcc     multiclass 0.2147    10 0.04336 Preprocessor1_Mod…
163     3   983     2 mcc     multiclass 0.2147    10 0.03940 Preprocessor1_Mod…
164     4   697     9 mcc     multiclass 0.2140    10 0.04712 Preprocessor1_Mod…
165     3  1445    14 mcc     multiclass 0.2139    10 0.06273 Preprocessor1_Mod…
166     4   406    13 mcc     multiclass 0.2138    10 0.05353 Preprocessor1_Mod…
167     4   713     2 mcc     multiclass 0.2137    10 0.04472 Preprocessor1_Mod…
168     4  1216    14 mcc     multiclass 0.2136    10 0.05439 Preprocessor1_Mod…
169     2  1066     7 mcc     multiclass 0.2136    10 0.02668 Preprocessor1_Mod…
170     4   907     8 mcc     multiclass 0.2135    10 0.05731 Preprocessor1_Mod…
171     3   539     8 mcc     multiclass 0.2130    10 0.06191 Preprocessor1_Mod…
172     3   836    11 mcc     multiclass 0.2130    10 0.05495 Preprocessor1_Mod…
173     3   515     7 mcc     multiclass 0.2128    10 0.04639 Preprocessor1_Mod…
174     4   409     3 mcc     multiclass 0.2115    10 0.04756 Preprocessor1_Mod…
175     4  1173    16 mcc     multiclass 0.2110    10 0.05696 Preprocessor1_Mod…
176     2   612    29 mcc     multiclass 0.2108    10 0.05950 Preprocessor1_Mod…
177     2   683    10 mcc     multiclass 0.2107    10 0.05708 Preprocessor1_Mod…
178     3  1085     4 mcc     multiclass 0.2107    10 0.05452 Preprocessor1_Mod…
179     2  1152     3 mcc     multiclass 0.2107    10 0.05104 Preprocessor1_Mod…
180     4  1429    19 mcc     multiclass 0.2106    10 0.06166 Preprocessor1_Mod…
181     2   993     7 mcc     multiclass 0.2105    10 0.04419 Preprocessor1_Mod…
182     4  1247    16 mcc     multiclass 0.2105    10 0.05544 Preprocessor1_Mod…
183     3  1313     7 mcc     multiclass 0.2104    10 0.04519 Preprocessor1_Mod…
184     3  1411     4 mcc     multiclass 0.2104    10 0.04508 Preprocessor1_Mod…
185     4  1352    13 mcc     multiclass 0.2102    10 0.05494 Preprocessor1_Mod…
186     3   566     5 mcc     multiclass 0.2101    10 0.04955 Preprocessor1_Mod…
187     3   659    15 mcc     multiclass 0.2100    10 0.05425 Preprocessor1_Mod…
188     2  1469     4 mcc     multiclass 0.2100    10 0.05592 Preprocessor1_Mod…
189     2   664     2 mcc     multiclass 0.2099    10 0.04034 Preprocessor1_Mod…
190     3   891     7 mcc     multiclass 0.2099    10 0.05411 Preprocessor1_Mod…
191     3   478     7 mcc     multiclass 0.2098    10 0.04521 Preprocessor1_Mod…
192     3   796     6 mcc     multiclass 0.2097    10 0.04532 Preprocessor1_Mod…
193     3   561    12 mcc     multiclass 0.2097    10 0.04930 Preprocessor1_Mod…
194     4  1405    17 mcc     multiclass 0.2096    10 0.05111 Preprocessor1_Mod…
195     4   648    20 mcc     multiclass 0.2096    10 0.06024 Preprocessor1_Mod…
196     4  1133    24 mcc     multiclass 0.2095    10 0.05448 Preprocessor1_Mod…
197     3   794    12 mcc     multiclass 0.2095    10 0.04505 Preprocessor1_Mod…
198     2   587    16 mcc     multiclass 0.2094    10 0.05054 Preprocessor1_Mod…
199     3  1475     5 mcc     multiclass 0.2094    10 0.04366 Preprocessor1_Mod…
200     3  1287    18 mcc     multiclass 0.2094    10 0.04535 Preprocessor1_Mod…

Efikasnost - GOD 2022_2023

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.5702 0.4140
2 precision   macro       0.7925 0.5472
3 spec        macro       0.9012 0.8173
4 accuracy    multiclass  0.7588 0.5424
5 f_meas      macro       0.7677 0.5487
6 mcc         multiclass  0.6320 0.2880
7 kap         multiclass  0.6226 0.2869
8 roc_auc     hand_till   0.9133 0.7179
9 mn_log_loss multiclass  0.7939 1.027 

Confusion matrix

Column 2

ROC curve

Gain curve

Važnost prediktora - GOD 2022_2023

Columnn 1

Gini

permutacija

Column 2

Boruta

Boruta (history)

Hiperparametri - GOD_2021_2022

Column 1

Testirani hiperparametri - GOD 2022 / 2023

Column 2

200 najboljih modela za roc_auc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator   mean     n std_err .config           
    <int> <int> <int> <chr>   <chr>       <dbl> <int>   <dbl> <chr>             
  1     2   576    40 roc_auc hand_till  0.6338    10 0.03244 Preprocessor1_Mod…
  2     2  1256    38 roc_auc hand_till  0.6329    10 0.03292 Preprocessor1_Mod…
  3     2   753    39 roc_auc hand_till  0.6326    10 0.03257 Preprocessor1_Mod…
  4     2   412    39 roc_auc hand_till  0.6326    10 0.03218 Preprocessor1_Mod…
  5     2   564    37 roc_auc hand_till  0.6322    10 0.03447 Preprocessor1_Mod…
  6     2  1409    40 roc_auc hand_till  0.6319    10 0.03356 Preprocessor1_Mod…
  7     2   612    40 roc_auc hand_till  0.6318    10 0.03486 Preprocessor1_Mod…
  8     2   448    40 roc_auc hand_till  0.6317    10 0.03295 Preprocessor1_Mod…
  9     2   761    39 roc_auc hand_till  0.6308    10 0.03625 Preprocessor1_Mod…
 10     2  1460    36 roc_auc hand_till  0.6297    10 0.03567 Preprocessor1_Mod…
 11     2   429    37 roc_auc hand_till  0.6292    10 0.03188 Preprocessor1_Mod…
 12     2  1166    40 roc_auc hand_till  0.6290    10 0.03226 Preprocessor1_Mod…
 13     2  1008    38 roc_auc hand_till  0.6290    10 0.03189 Preprocessor1_Mod…
 14     2   995    36 roc_auc hand_till  0.6289    10 0.03516 Preprocessor1_Mod…
 15     2   616    35 roc_auc hand_till  0.6288    10 0.03364 Preprocessor1_Mod…
 16     2   566    38 roc_auc hand_till  0.6283    10 0.03114 Preprocessor1_Mod…
 17     2   501    40 roc_auc hand_till  0.6282    10 0.03403 Preprocessor1_Mod…
 18     2   703    36 roc_auc hand_till  0.6282    10 0.03392 Preprocessor1_Mod…
 19     2  1155    37 roc_auc hand_till  0.6280    10 0.03454 Preprocessor1_Mod…
 20     2   527    36 roc_auc hand_till  0.6279    10 0.03359 Preprocessor1_Mod…
 21     2   588    35 roc_auc hand_till  0.6276    10 0.03261 Preprocessor1_Mod…
 22     2   771    35 roc_auc hand_till  0.6275    10 0.03544 Preprocessor1_Mod…
 23     2  1481    37 roc_auc hand_till  0.6274    10 0.03275 Preprocessor1_Mod…
 24     3   411    36 roc_auc hand_till  0.6267    10 0.03615 Preprocessor1_Mod…
 25     2  1499    35 roc_auc hand_till  0.6267    10 0.03463 Preprocessor1_Mod…
 26     2   501    35 roc_auc hand_till  0.6267    10 0.03366 Preprocessor1_Mod…
 27     2   569    39 roc_auc hand_till  0.6263    10 0.03066 Preprocessor1_Mod…
 28     2  1277    37 roc_auc hand_till  0.6263    10 0.02975 Preprocessor1_Mod…
 29     2   989    35 roc_auc hand_till  0.6262    10 0.03400 Preprocessor1_Mod…
 30     3  1218    38 roc_auc hand_till  0.6253    10 0.03629 Preprocessor1_Mod…
 31     2   847    36 roc_auc hand_till  0.6252    10 0.03081 Preprocessor1_Mod…
 32     2   499    37 roc_auc hand_till  0.6252    10 0.03244 Preprocessor1_Mod…
 33     2   857    37 roc_auc hand_till  0.6249    10 0.03445 Preprocessor1_Mod…
 34     2   740    34 roc_auc hand_till  0.6248    10 0.03447 Preprocessor1_Mod…
 35     2   930    37 roc_auc hand_till  0.6248    10 0.03422 Preprocessor1_Mod…
 36     2  1223    37 roc_auc hand_till  0.6246    10 0.03562 Preprocessor1_Mod…
 37     2  1175    36 roc_auc hand_till  0.6245    10 0.03189 Preprocessor1_Mod…
 38     2  1445    34 roc_auc hand_till  0.6244    10 0.03498 Preprocessor1_Mod…
 39     3  1072    38 roc_auc hand_till  0.6244    10 0.03385 Preprocessor1_Mod…
 40     2  1266    33 roc_auc hand_till  0.6244    10 0.03447 Preprocessor1_Mod…
 41     2  1451    33 roc_auc hand_till  0.6242    10 0.03539 Preprocessor1_Mod…
 42     3  1274    40 roc_auc hand_till  0.6240    10 0.03589 Preprocessor1_Mod…
 43     2   959    34 roc_auc hand_till  0.6239    10 0.03323 Preprocessor1_Mod…
 44     2  1441    31 roc_auc hand_till  0.6237    10 0.03582 Preprocessor1_Mod…
 45     2   492    31 roc_auc hand_till  0.6236    10 0.03628 Preprocessor1_Mod…
 46     2  1243    39 roc_auc hand_till  0.6234    10 0.02959 Preprocessor1_Mod…
 47     3  1130    38 roc_auc hand_till  0.6230    10 0.03432 Preprocessor1_Mod…
 48     2   938    32 roc_auc hand_till  0.6230    10 0.03560 Preprocessor1_Mod…
 49     4  1324    39 roc_auc hand_till  0.6229    10 0.03320 Preprocessor1_Mod…
 50     4   638    39 roc_auc hand_till  0.6228    10 0.03570 Preprocessor1_Mod…
 51     2  1068    37 roc_auc hand_till  0.6225    10 0.03366 Preprocessor1_Mod…
 52     2  1181    35 roc_auc hand_till  0.6225    10 0.03409 Preprocessor1_Mod…
 53     3   897    39 roc_auc hand_till  0.6225    10 0.03412 Preprocessor1_Mod…
 54     2  1265    37 roc_auc hand_till  0.6224    10 0.03438 Preprocessor1_Mod…
 55     2  1462    32 roc_auc hand_till  0.6222    10 0.03365 Preprocessor1_Mod…
 56     2  1277    29 roc_auc hand_till  0.6221    10 0.03738 Preprocessor1_Mod…
 57     2  1337    35 roc_auc hand_till  0.6220    10 0.03619 Preprocessor1_Mod…
 58     4   723    40 roc_auc hand_till  0.6220    10 0.03263 Preprocessor1_Mod…
 59     2  1402    33 roc_auc hand_till  0.6218    10 0.03276 Preprocessor1_Mod…
 60     2   663    39 roc_auc hand_till  0.6216    10 0.03381 Preprocessor1_Mod…
 61     3  1374    38 roc_auc hand_till  0.6216    10 0.03476 Preprocessor1_Mod…
 62     3  1381    40 roc_auc hand_till  0.6213    10 0.03308 Preprocessor1_Mod…
 63     4   481    39 roc_auc hand_till  0.6210    10 0.03350 Preprocessor1_Mod…
 64     2   861    34 roc_auc hand_till  0.6209    10 0.03496 Preprocessor1_Mod…
 65     2  1458    33 roc_auc hand_till  0.6206    10 0.03532 Preprocessor1_Mod…
 66     3  1489    37 roc_auc hand_till  0.6204    10 0.03485 Preprocessor1_Mod…
 67     3   490    37 roc_auc hand_till  0.6203    10 0.03612 Preprocessor1_Mod…
 68     2   495    38 roc_auc hand_till  0.6202    10 0.03392 Preprocessor1_Mod…
 69     3   900    39 roc_auc hand_till  0.6200    10 0.03258 Preprocessor1_Mod…
 70     2  1176    35 roc_auc hand_till  0.6199    10 0.03102 Preprocessor1_Mod…
 71     2   624    33 roc_auc hand_till  0.6199    10 0.03706 Preprocessor1_Mod…
 72     2   995    33 roc_auc hand_till  0.6199    10 0.03627 Preprocessor1_Mod…
 73     3  1493    38 roc_auc hand_till  0.6199    10 0.03425 Preprocessor1_Mod…
 74     3  1240    38 roc_auc hand_till  0.6197    10 0.03536 Preprocessor1_Mod…
 75     2   433    36 roc_auc hand_till  0.6197    10 0.03431 Preprocessor1_Mod…
 76     3   752    40 roc_auc hand_till  0.6194    10 0.03316 Preprocessor1_Mod…
 77     2  1422    33 roc_auc hand_till  0.6194    10 0.03518 Preprocessor1_Mod…
 78     3   550    39 roc_auc hand_till  0.6194    10 0.03130 Preprocessor1_Mod…
 79     2   404    35 roc_auc hand_till  0.6190    10 0.03313 Preprocessor1_Mod…
 80     2  1083    30 roc_auc hand_till  0.6190    10 0.03619 Preprocessor1_Mod…
 81     2   423    37 roc_auc hand_till  0.6189    10 0.03448 Preprocessor1_Mod…
 82     3   741    36 roc_auc hand_till  0.6189    10 0.03369 Preprocessor1_Mod…
 83     2  1373    34 roc_auc hand_till  0.6188    10 0.03445 Preprocessor1_Mod…
 84     4  1271    38 roc_auc hand_till  0.6188    10 0.03603 Preprocessor1_Mod…
 85     2   409    36 roc_auc hand_till  0.6188    10 0.03374 Preprocessor1_Mod…
 86     3  1000    38 roc_auc hand_till  0.6186    10 0.03549 Preprocessor1_Mod…
 87     3  1326    37 roc_auc hand_till  0.6185    10 0.03190 Preprocessor1_Mod…
 88     2  1137    33 roc_auc hand_till  0.6185    10 0.03423 Preprocessor1_Mod…
 89     2   756    32 roc_auc hand_till  0.6185    10 0.03514 Preprocessor1_Mod…
 90     2  1088    32 roc_auc hand_till  0.6185    10 0.03478 Preprocessor1_Mod…
 91     3   681    37 roc_auc hand_till  0.6185    10 0.03449 Preprocessor1_Mod…
 92     3  1268    37 roc_auc hand_till  0.6184    10 0.03555 Preprocessor1_Mod…
 93     4  1207    39 roc_auc hand_till  0.6182    10 0.03628 Preprocessor1_Mod…
 94     3  1134    39 roc_auc hand_till  0.6181    10 0.03553 Preprocessor1_Mod…
 95     4   788    39 roc_auc hand_till  0.6180    10 0.03501 Preprocessor1_Mod…
 96     2  1312    31 roc_auc hand_till  0.6180    10 0.03728 Preprocessor1_Mod…
 97     3  1236    38 roc_auc hand_till  0.6179    10 0.03298 Preprocessor1_Mod…
 98     2  1115    34 roc_auc hand_till  0.6179    10 0.03407 Preprocessor1_Mod…
 99     4  1243    40 roc_auc hand_till  0.6179    10 0.03152 Preprocessor1_Mod…
100     4   545    39 roc_auc hand_till  0.6179    10 0.03375 Preprocessor1_Mod…
101     3  1449    38 roc_auc hand_till  0.6178    10 0.03378 Preprocessor1_Mod…
102     4   975    40 roc_auc hand_till  0.6178    10 0.03369 Preprocessor1_Mod…
103     4   607    40 roc_auc hand_till  0.6177    10 0.03336 Preprocessor1_Mod…
104     3  1391    40 roc_auc hand_till  0.6176    10 0.03233 Preprocessor1_Mod…
105     4  1433    40 roc_auc hand_till  0.6176    10 0.03415 Preprocessor1_Mod…
106     2  1468    31 roc_auc hand_till  0.6175    10 0.03806 Preprocessor1_Mod…
107     3  1316    39 roc_auc hand_till  0.6175    10 0.03311 Preprocessor1_Mod…
108     2   582    27 roc_auc hand_till  0.6175    10 0.03433 Preprocessor1_Mod…
109     3   442    35 roc_auc hand_till  0.6174    10 0.03639 Preprocessor1_Mod…
110     4   857    37 roc_auc hand_till  0.6174    10 0.03328 Preprocessor1_Mod…
111     3   922    40 roc_auc hand_till  0.6173    10 0.03073 Preprocessor1_Mod…
112     2  1095    36 roc_auc hand_till  0.6172    10 0.03642 Preprocessor1_Mod…
113     2   635    33 roc_auc hand_till  0.6172    10 0.03585 Preprocessor1_Mod…
114     3  1423    40 roc_auc hand_till  0.6172    10 0.03472 Preprocessor1_Mod…
115     3   544    33 roc_auc hand_till  0.6171    10 0.03392 Preprocessor1_Mod…
116     2  1135    27 roc_auc hand_till  0.6171    10 0.03474 Preprocessor1_Mod…
117     3  1343    39 roc_auc hand_till  0.6171    10 0.03281 Preprocessor1_Mod…
118     2   847    29 roc_auc hand_till  0.6169    10 0.04033 Preprocessor1_Mod…
119     2  1455    32 roc_auc hand_till  0.6168    10 0.03490 Preprocessor1_Mod…
120     2   966    33 roc_auc hand_till  0.6167    10 0.03028 Preprocessor1_Mod…
121     2   786    29 roc_auc hand_till  0.6165    10 0.03545 Preprocessor1_Mod…
122     3   816    40 roc_auc hand_till  0.6163    10 0.03304 Preprocessor1_Mod…
123     3  1071    39 roc_auc hand_till  0.6163    10 0.03225 Preprocessor1_Mod…
124     4   951    40 roc_auc hand_till  0.6162    10 0.03327 Preprocessor1_Mod…
125     2   584    30 roc_auc hand_till  0.6162    10 0.03342 Preprocessor1_Mod…
126     3   831    34 roc_auc hand_till  0.6161    10 0.03623 Preprocessor1_Mod…
127     2   452    32 roc_auc hand_till  0.6161    10 0.03666 Preprocessor1_Mod…
128     3   810    32 roc_auc hand_till  0.6159    10 0.03672 Preprocessor1_Mod…
129     3  1319    37 roc_auc hand_till  0.6159    10 0.03490 Preprocessor1_Mod…
130     4   742    40 roc_auc hand_till  0.6159    10 0.03243 Preprocessor1_Mod…
131     3   686    34 roc_auc hand_till  0.6158    10 0.03707 Preprocessor1_Mod…
132     3  1395    35 roc_auc hand_till  0.6158    10 0.03465 Preprocessor1_Mod…
133     2   807    29 roc_auc hand_till  0.6158    10 0.03277 Preprocessor1_Mod…
134     2   618    31 roc_auc hand_till  0.6157    10 0.03826 Preprocessor1_Mod…
135     3   426    36 roc_auc hand_till  0.6156    10 0.03320 Preprocessor1_Mod…
136     4  1480    40 roc_auc hand_till  0.6156    10 0.03154 Preprocessor1_Mod…
137     2   719    31 roc_auc hand_till  0.6156    10 0.03544 Preprocessor1_Mod…
138     2  1150    33 roc_auc hand_till  0.6154    10 0.03384 Preprocessor1_Mod…
139     3   965    40 roc_auc hand_till  0.6153    10 0.03399 Preprocessor1_Mod…
140     4   426    39 roc_auc hand_till  0.6153    10 0.03534 Preprocessor1_Mod…
141     2  1232    33 roc_auc hand_till  0.6153    10 0.03561 Preprocessor1_Mod…
142     4  1408    36 roc_auc hand_till  0.6152    10 0.03638 Preprocessor1_Mod…
143     3   832    30 roc_auc hand_till  0.6151    10 0.03770 Preprocessor1_Mod…
144     2   674    31 roc_auc hand_till  0.6150    10 0.03686 Preprocessor1_Mod…
145     2  1175    37 roc_auc hand_till  0.6150    10 0.03201 Preprocessor1_Mod…
146     3  1330    40 roc_auc hand_till  0.6149    10 0.03386 Preprocessor1_Mod…
147     4   763    40 roc_auc hand_till  0.6149    10 0.03817 Preprocessor1_Mod…
148     2  1169    33 roc_auc hand_till  0.6148    10 0.03293 Preprocessor1_Mod…
149     2  1129    31 roc_auc hand_till  0.6148    10 0.03584 Preprocessor1_Mod…
150     4  1339    39 roc_auc hand_till  0.6148    10 0.03503 Preprocessor1_Mod…
151     4  1382    38 roc_auc hand_till  0.6148    10 0.03512 Preprocessor1_Mod…
152     3  1109    31 roc_auc hand_till  0.6146    10 0.03507 Preprocessor1_Mod…
153     2  1483    27 roc_auc hand_till  0.6145    10 0.03599 Preprocessor1_Mod…
154     4  1108    40 roc_auc hand_till  0.6144    10 0.03253 Preprocessor1_Mod…
155     4  1009    34 roc_auc hand_till  0.6144    10 0.03690 Preprocessor1_Mod…
156     3  1434    35 roc_auc hand_till  0.6144    10 0.03742 Preprocessor1_Mod…
157     3   754    35 roc_auc hand_till  0.6143    10 0.03226 Preprocessor1_Mod…
158     2  1179    32 roc_auc hand_till  0.6143    10 0.03620 Preprocessor1_Mod…
159     4   848    35 roc_auc hand_till  0.6142    10 0.03350 Preprocessor1_Mod…
160     4  1435    38 roc_auc hand_till  0.6141    10 0.03423 Preprocessor1_Mod…
161     3  1454    37 roc_auc hand_till  0.6141    10 0.03379 Preprocessor1_Mod…
162     3   714    35 roc_auc hand_till  0.6140    10 0.03685 Preprocessor1_Mod…
163     3   687    29 roc_auc hand_till  0.6140    10 0.03806 Preprocessor1_Mod…
164     2  1054    36 roc_auc hand_till  0.6140    10 0.03313 Preprocessor1_Mod…
165     2   634    31 roc_auc hand_till  0.6139    10 0.03648 Preprocessor1_Mod…
166     3   671    34 roc_auc hand_till  0.6139    10 0.03332 Preprocessor1_Mod…
167     3  1422    38 roc_auc hand_till  0.6139    10 0.03333 Preprocessor1_Mod…
168     2  1358    26 roc_auc hand_till  0.6139    10 0.03684 Preprocessor1_Mod…
169     2   492    38 roc_auc hand_till  0.6138    10 0.03274 Preprocessor1_Mod…
170     4  1021    39 roc_auc hand_till  0.6138    10 0.03368 Preprocessor1_Mod…
171     3  1441    39 roc_auc hand_till  0.6137    10 0.03173 Preprocessor1_Mod…
172     3  1242    32 roc_auc hand_till  0.6136    10 0.03635 Preprocessor1_Mod…
173     2   690    28 roc_auc hand_till  0.6134    10 0.03473 Preprocessor1_Mod…
174     2   725    29 roc_auc hand_till  0.6133    10 0.03654 Preprocessor1_Mod…
175     2   520    30 roc_auc hand_till  0.6132    10 0.03560 Preprocessor1_Mod…
176     3  1404    34 roc_auc hand_till  0.6132    10 0.03295 Preprocessor1_Mod…
177     4   605    33 roc_auc hand_till  0.6131    10 0.03325 Preprocessor1_Mod…
178     2   912    28 roc_auc hand_till  0.6131    10 0.03488 Preprocessor1_Mod…
179     3  1150    36 roc_auc hand_till  0.6131    10 0.03544 Preprocessor1_Mod…
180     3  1218    35 roc_auc hand_till  0.6131    10 0.03434 Preprocessor1_Mod…
181     4   767    37 roc_auc hand_till  0.6131    10 0.03256 Preprocessor1_Mod…
182     4   922    36 roc_auc hand_till  0.6129    10 0.03514 Preprocessor1_Mod…
183     3   439    32 roc_auc hand_till  0.6128    10 0.03307 Preprocessor1_Mod…
184     4   653    36 roc_auc hand_till  0.6128    10 0.03589 Preprocessor1_Mod…
185     3   870    35 roc_auc hand_till  0.6127    10 0.03583 Preprocessor1_Mod…
186     4  1181    32 roc_auc hand_till  0.6127    10 0.03660 Preprocessor1_Mod…
187     3  1194    35 roc_auc hand_till  0.6124    10 0.03610 Preprocessor1_Mod…
188     4   584    33 roc_auc hand_till  0.6123    10 0.03411 Preprocessor1_Mod…
189     3  1148    35 roc_auc hand_till  0.6123    10 0.03482 Preprocessor1_Mod…
190     3   883    33 roc_auc hand_till  0.6123    10 0.03560 Preprocessor1_Mod…
191     2  1064    30 roc_auc hand_till  0.6122    10 0.03639 Preprocessor1_Mod…
192     3  1075    35 roc_auc hand_till  0.6122    10 0.03563 Preprocessor1_Mod…
193     4  1059    36 roc_auc hand_till  0.6121    10 0.03528 Preprocessor1_Mod…
194     3  1101    34 roc_auc hand_till  0.6119    10 0.03575 Preprocessor1_Mod…
195     2  1188    27 roc_auc hand_till  0.6119    10 0.03383 Preprocessor1_Mod…
196     4  1008    36 roc_auc hand_till  0.6119    10 0.03605 Preprocessor1_Mod…
197     3  1455    35 roc_auc hand_till  0.6119    10 0.03539 Preprocessor1_Mod…
198     2   705    28 roc_auc hand_till  0.6118    10 0.03391 Preprocessor1_Mod…
199     3   841    34 roc_auc hand_till  0.6118    10 0.03461 Preprocessor1_Mod…
200     4  1185    35 roc_auc hand_till  0.6116    10 0.03564 Preprocessor1_Mod…

200 najboljih modela za mcc metriku

# A tibble: 200 × 9
     mtry trees min_n .metric .estimator    mean     n std_err .config          
    <int> <int> <int> <chr>   <chr>        <dbl> <int>   <dbl> <chr>            
  1     2   501    35 mcc     multiclass 0.1060     10 0.04739 Preprocessor1_Mo…
  2     2   635    33 mcc     multiclass 0.1051     10 0.05487 Preprocessor1_Mo…
  3     4   742    40 mcc     multiclass 0.09196    10 0.04300 Preprocessor1_Mo…
  4     2   576    40 mcc     multiclass 0.09063    10 0.04849 Preprocessor1_Mo…
  5     3   752    40 mcc     multiclass 0.08787    10 0.05421 Preprocessor1_Mo…
  6     3  1128    38 mcc     multiclass 0.08262    10 0.05274 Preprocessor1_Mo…
  7     2   501    40 mcc     multiclass 0.08244    10 0.05271 Preprocessor1_Mo…
  8     2   930    37 mcc     multiclass 0.08235    10 0.04599 Preprocessor1_Mo…
  9     2   569    39 mcc     multiclass 0.08201    10 0.04597 Preprocessor1_Mo…
 10     2  1223    37 mcc     multiclass 0.08107    10 0.04521 Preprocessor1_Mo…
 11     2  1068    37 mcc     multiclass 0.07961    10 0.04491 Preprocessor1_Mo…
 12     2   582    35 mcc     multiclass 0.07766    10 0.03843 Preprocessor1_Mo…
 13     4   852    39 mcc     multiclass 0.07749    10 0.03958 Preprocessor1_Mo…
 14     3   405    29 mcc     multiclass 0.07689    10 0.04664 Preprocessor1_Mo…
 15     3  1374    38 mcc     multiclass 0.07609    10 0.04595 Preprocessor1_Mo…
 16     3  1423    40 mcc     multiclass 0.07588    10 0.04791 Preprocessor1_Mo…
 17     2   448    40 mcc     multiclass 0.07535    10 0.04958 Preprocessor1_Mo…
 18     2  1243    39 mcc     multiclass 0.07532    10 0.04613 Preprocessor1_Mo…
 19     4   622    28 mcc     multiclass 0.07521    10 0.04522 Preprocessor1_Mo…
 20     2  1155    37 mcc     multiclass 0.07521    10 0.04148 Preprocessor1_Mo…
 21     4  1434    37 mcc     multiclass 0.07511    10 0.04371 Preprocessor1_Mo…
 22     4  1000    37 mcc     multiclass 0.07481    10 0.04529 Preprocessor1_Mo…
 23     2   527    36 mcc     multiclass 0.07464    10 0.04531 Preprocessor1_Mo…
 24     2  1175    36 mcc     multiclass 0.07463    10 0.04521 Preprocessor1_Mo…
 25     4   751    34 mcc     multiclass 0.07430    10 0.04553 Preprocessor1_Mo…
 26     2   857    37 mcc     multiclass 0.07405    10 0.04544 Preprocessor1_Mo…
 27     2   495    38 mcc     multiclass 0.07388    10 0.05224 Preprocessor1_Mo…
 28     3  1218    38 mcc     multiclass 0.07388    10 0.05224 Preprocessor1_Mo…
 29     3  1441    39 mcc     multiclass 0.07387    10 0.04550 Preprocessor1_Mo…
 30     2   454    21 mcc     multiclass 0.07387    10 0.06095 Preprocessor1_Mo…
 31     2  1190    31 mcc     multiclass 0.07378    10 0.04300 Preprocessor1_Mo…
 32     2   725    29 mcc     multiclass 0.07360    10 0.05185 Preprocessor1_Mo…
 33     3  1274    40 mcc     multiclass 0.07352    10 0.04636 Preprocessor1_Mo…
 34     2  1409    40 mcc     multiclass 0.07352    10 0.04636 Preprocessor1_Mo…
 35     3  1391    40 mcc     multiclass 0.07352    10 0.04636 Preprocessor1_Mo…
 36     2  1166    40 mcc     multiclass 0.07334    10 0.04632 Preprocessor1_Mo…
 37     4   763    40 mcc     multiclass 0.07319    10 0.03716 Preprocessor1_Mo…
 38     4  1062    21 mcc     multiclass 0.07303    10 0.04279 Preprocessor1_Mo…
 39     4   496    35 mcc     multiclass 0.07288    10 0.04713 Preprocessor1_Mo…
 40     2   499    37 mcc     multiclass 0.07285    10 0.03986 Preprocessor1_Mo…
 41     2   588    35 mcc     multiclass 0.07207    10 0.04572 Preprocessor1_Mo…
 42     4   812    20 mcc     multiclass 0.07201    10 0.04790 Preprocessor1_Mo…
 43     4   756    17 mcc     multiclass 0.07087    10 0.03876 Preprocessor1_Mo…
 44     2   703    36 mcc     multiclass 0.07063    10 0.05187 Preprocessor1_Mo…
 45     2   520    30 mcc     multiclass 0.07044    10 0.04768 Preprocessor1_Mo…
 46     2   995    36 mcc     multiclass 0.07043    10 0.04411 Preprocessor1_Mo…
 47     2   429    37 mcc     multiclass 0.07007    10 0.04782 Preprocessor1_Mo…
 48     2  1232    33 mcc     multiclass 0.06943    10 0.04413 Preprocessor1_Mo…
 49     2  1451    33 mcc     multiclass 0.06925    10 0.04419 Preprocessor1_Mo…
 50     2  1277    37 mcc     multiclass 0.06925    10 0.04419 Preprocessor1_Mo…
 51     3   965    40 mcc     multiclass 0.06892    10 0.05040 Preprocessor1_Mo…
 52     3  1381    40 mcc     multiclass 0.06843    10 0.04234 Preprocessor1_Mo…
 53     4   796    31 mcc     multiclass 0.06795    10 0.04013 Preprocessor1_Mo…
 54     3   957    33 mcc     multiclass 0.06786    10 0.05283 Preprocessor1_Mo…
 55     3   891    26 mcc     multiclass 0.06768    10 0.04382 Preprocessor1_Mo…
 56     3   640    27 mcc     multiclass 0.06751    10 0.04387 Preprocessor1_Mo…
 57     2  1181    21 mcc     multiclass 0.06747    10 0.04447 Preprocessor1_Mo…
 58     4   725    28 mcc     multiclass 0.06746    10 0.03885 Preprocessor1_Mo…
 59     4   619    26 mcc     multiclass 0.06723    10 0.03728 Preprocessor1_Mo…
 60     4  1381    18 mcc     multiclass 0.06666    10 0.03738 Preprocessor1_Mo…
 61     4  1339    39 mcc     multiclass 0.06664    10 0.03908 Preprocessor1_Mo…
 62     3   805    32 mcc     multiclass 0.06634    10 0.04402 Preprocessor1_Mo…
 63     4   426    39 mcc     multiclass 0.06624    10 0.04928 Preprocessor1_Mo…
 64     4  1064    29 mcc     multiclass 0.06595    10 0.04393 Preprocessor1_Mo…
 65     3  1449    31 mcc     multiclass 0.06595    10 0.04393 Preprocessor1_Mo…
 66     4   938    21 mcc     multiclass 0.06591    10 0.03875 Preprocessor1_Mo…
 67     4  1384    26 mcc     multiclass 0.06578    10 0.04399 Preprocessor1_Mo…
 68     4   737    31 mcc     multiclass 0.06578    10 0.04399 Preprocessor1_Mo…
 69     4   681    33 mcc     multiclass 0.06548    10 0.04628 Preprocessor1_Mo…
 70     3   438    31 mcc     multiclass 0.06542    10 0.04231 Preprocessor1_Mo…
 71     3   922    40 mcc     multiclass 0.06527    10 0.04468 Preprocessor1_Mo…
 72     3   816    40 mcc     multiclass 0.06509    10 0.04474 Preprocessor1_Mo…
 73     4   944    37 mcc     multiclass 0.06473    10 0.04716 Preprocessor1_Mo…
 74     3  1130    38 mcc     multiclass 0.06465    10 0.04530 Preprocessor1_Mo…
 75     4   890    36 mcc     multiclass 0.06465    10 0.04530 Preprocessor1_Mo…
 76     2  1095    36 mcc     multiclass 0.06443    10 0.05097 Preprocessor1_Mo…
 77     3   442    35 mcc     multiclass 0.06439    10 0.04379 Preprocessor1_Mo…
 78     2   612    40 mcc     multiclass 0.06434    10 0.04122 Preprocessor1_Mo…
 79     2  1175    37 mcc     multiclass 0.06414    10 0.04115 Preprocessor1_Mo…
 80     3  1434    35 mcc     multiclass 0.06399    10 0.04393 Preprocessor1_Mo…
 81     2  1296    28 mcc     multiclass 0.06397    10 0.04419 Preprocessor1_Mo…
 82     4   586    30 mcc     multiclass 0.06394    10 0.04459 Preprocessor1_Mo…
 83     2   492    31 mcc     multiclass 0.06368    10 0.04393 Preprocessor1_Mo…
 84     2  1445    34 mcc     multiclass 0.06350    10 0.04486 Preprocessor1_Mo…
 85     4  1271    38 mcc     multiclass 0.06346    10 0.04487 Preprocessor1_Mo…
 86     3   686    34 mcc     multiclass 0.06346    10 0.04645 Preprocessor1_Mo…
 87     4  1413    37 mcc     multiclass 0.06337    10 0.04456 Preprocessor1_Mo…
 88     2  1481    37 mcc     multiclass 0.06333    10 0.04492 Preprocessor1_Mo…
 89     2   646    29 mcc     multiclass 0.06324    10 0.03941 Preprocessor1_Mo…
 90     2   892    29 mcc     multiclass 0.06320    10 0.04462 Preprocessor1_Mo…
 91     3  1276    23 mcc     multiclass 0.06281    10 0.04625 Preprocessor1_Mo…
 92     2   861    34 mcc     multiclass 0.06276    10 0.04410 Preprocessor1_Mo…
 93     3   870    35 mcc     multiclass 0.06268    10 0.04737 Preprocessor1_Mo…
 94     3  1330    40 mcc     multiclass 0.06248    10 0.04490 Preprocessor1_Mo…
 95     4   481    39 mcc     multiclass 0.06236    10 0.03825 Preprocessor1_Mo…
 96     4   467    36 mcc     multiclass 0.06229    10 0.04415 Preprocessor1_Mo…
 97     2  1266    33 mcc     multiclass 0.06223    10 0.04411 Preprocessor1_Mo…
 98     4   607    40 mcc     multiclass 0.06220    10 0.04659 Preprocessor1_Mo…
 99     2   616    35 mcc     multiclass 0.06220    10 0.05297 Preprocessor1_Mo…
100     2  1458    33 mcc     multiclass 0.06212    10 0.03933 Preprocessor1_Mo…
101     2  1499    35 mcc     multiclass 0.06205    10 0.04417 Preprocessor1_Mo…
102     4  1192    17 mcc     multiclass 0.06203    10 0.04530 Preprocessor1_Mo…
103     2  1312    31 mcc     multiclass 0.06195    10 0.04653 Preprocessor1_Mo…
104     2   753    39 mcc     multiclass 0.06178    10 0.04033 Preprocessor1_Mo…
105     2   644    22 mcc     multiclass 0.06172    10 0.04379 Preprocessor1_Mo…
106     2  1181    35 mcc     multiclass 0.06170    10 0.04504 Preprocessor1_Mo…
107     2   771    35 mcc     multiclass 0.06152    10 0.04510 Preprocessor1_Mo…
108     3  1138    23 mcc     multiclass 0.06136    10 0.03345 Preprocessor1_Mo…
109     4  1487    24 mcc     multiclass 0.06131    10 0.04023 Preprocessor1_Mo…
110     2   566    38 mcc     multiclass 0.06119    10 0.04413 Preprocessor1_Mo…
111     4  1333    25 mcc     multiclass 0.06114    10 0.03625 Preprocessor1_Mo…
112     4  1108    40 mcc     multiclass 0.06113    10 0.04020 Preprocessor1_Mo…
113     3   582    29 mcc     multiclass 0.06112    10 0.03637 Preprocessor1_Mo…
114     2  1054    36 mcc     multiclass 0.06107    10 0.04361 Preprocessor1_Mo…
115     3   431    25 mcc     multiclass 0.06077    10 0.03913 Preprocessor1_Mo…
116     4   694    25 mcc     multiclass 0.06067    10 0.03854 Preprocessor1_Mo…
117     2   412    39 mcc     multiclass 0.06065    10 0.04450 Preprocessor1_Mo…
118     2  1083    30 mcc     multiclass 0.06063    10 0.04638 Preprocessor1_Mo…
119     4  1480    40 mcc     multiclass 0.06056    10 0.05077 Preprocessor1_Mo…
120     2  1256    38 mcc     multiclass 0.06042    10 0.04429 Preprocessor1_Mo…
121     2  1176    35 mcc     multiclass 0.06042    10 0.04429 Preprocessor1_Mo…
122     4  1438    30 mcc     multiclass 0.06039    10 0.04012 Preprocessor1_Mo…
123     3  1345    26 mcc     multiclass 0.06034    10 0.03910 Preprocessor1_Mo…
124     3   889    34 mcc     multiclass 0.06028    10 0.04731 Preprocessor1_Mo…
125     4  1382    38 mcc     multiclass 0.06027    10 0.04313 Preprocessor1_Mo…
126     2  1422    33 mcc     multiclass 0.06025    10 0.04435 Preprocessor1_Mo…
127     2   761    39 mcc     multiclass 0.06025    10 0.04435 Preprocessor1_Mo…
128     3   544    33 mcc     multiclass 0.06023    10 0.03948 Preprocessor1_Mo…
129     4   675    38 mcc     multiclass 0.06019    10 0.03477 Preprocessor1_Mo…
130     4   637    26 mcc     multiclass 0.06008    10 0.04009 Preprocessor1_Mo…
131     4  1145    23 mcc     multiclass 0.06007    10 0.03969 Preprocessor1_Mo…
132     2   734    22 mcc     multiclass 0.05997    10 0.03621 Preprocessor1_Mo…
133     3   498    37 mcc     multiclass 0.05984    10 0.05041 Preprocessor1_Mo…
134     4   734    26 mcc     multiclass 0.05968    10 0.03316 Preprocessor1_Mo…
135     4  1328    23 mcc     multiclass 0.05959    10 0.04087 Preprocessor1_Mo…
136     2  1373    34 mcc     multiclass 0.05953    10 0.04559 Preprocessor1_Mo…
137     2  1462    32 mcc     multiclass 0.05953    10 0.04559 Preprocessor1_Mo…
138     2  1008    38 mcc     multiclass 0.05940    10 0.04432 Preprocessor1_Mo…
139     2   423    37 mcc     multiclass 0.05938    10 0.03996 Preprocessor1_Mo…
140     2  1468    31 mcc     multiclass 0.05936    10 0.04565 Preprocessor1_Mo…
141     2  1337    35 mcc     multiclass 0.05936    10 0.04565 Preprocessor1_Mo…
142     4   725    13 mcc     multiclass 0.05935    10 0.04297 Preprocessor1_Mo…
143     4  1385    22 mcc     multiclass 0.05934    10 0.04487 Preprocessor1_Mo…
144     4  1462    33 mcc     multiclass 0.05933    10 0.04002 Preprocessor1_Mo…
145     3  1150    36 mcc     multiclass 0.05926    10 0.05349 Preprocessor1_Mo…
146     4   530    28 mcc     multiclass 0.05924    10 0.03851 Preprocessor1_Mo…
147     2   564    37 mcc     multiclass 0.05923    10 0.04437 Preprocessor1_Mo…
148     4   962    33 mcc     multiclass 0.05915    10 0.04198 Preprocessor1_Mo…
149     4  1469    19 mcc     multiclass 0.05914    10 0.03544 Preprocessor1_Mo…
150     3   530    33 mcc     multiclass 0.05910    10 0.04919 Preprocessor1_Mo…
151     2   525    23 mcc     multiclass 0.05900    10 0.04543 Preprocessor1_Mo…
152     4  1028    19 mcc     multiclass 0.05896    10 0.03231 Preprocessor1_Mo…
153     4   588    36 mcc     multiclass 0.05886    10 0.05006 Preprocessor1_Mo…
154     3   660    30 mcc     multiclass 0.05877    10 0.03772 Preprocessor1_Mo…
155     4  1252    31 mcc     multiclass 0.05866    10 0.04022 Preprocessor1_Mo…
156     3  1319    26 mcc     multiclass 0.05849    10 0.04028 Preprocessor1_Mo…
157     3   713    35 mcc     multiclass 0.05844    10 0.04699 Preprocessor1_Mo…
158     2  1363    20 mcc     multiclass 0.05828    10 0.03731 Preprocessor1_Mo…
159     2   522    23 mcc     multiclass 0.05818    10 0.03228 Preprocessor1_Mo…
160     4  1307    32 mcc     multiclass 0.05805    10 0.03916 Preprocessor1_Mo…
161     3   787    26 mcc     multiclass 0.05805    10 0.03916 Preprocessor1_Mo…
162     4  1040    35 mcc     multiclass 0.05805    10 0.03916 Preprocessor1_Mo…
163     3   929    34 mcc     multiclass 0.05805    10 0.03916 Preprocessor1_Mo…
164     4   584    33 mcc     multiclass 0.05803    10 0.04533 Preprocessor1_Mo…
165     3  1089    31 mcc     multiclass 0.05799    10 0.04233 Preprocessor1_Mo…
166     4  1377    31 mcc     multiclass 0.05788    10 0.03922 Preprocessor1_Mo…
167     3  1023    23 mcc     multiclass 0.05781    10 0.04627 Preprocessor1_Mo…
168     2   989    35 mcc     multiclass 0.05772    10 0.04609 Preprocessor1_Mo…
169     2  1429    18 mcc     multiclass 0.05767    10 0.03996 Preprocessor1_Mo…
170     2  1033    28 mcc     multiclass 0.05766    10 0.04534 Preprocessor1_Mo…
171     4  1021    39 mcc     multiclass 0.05743    10 0.04575 Preprocessor1_Mo…
172     2   409    36 mcc     multiclass 0.05742    10 0.03668 Preprocessor1_Mo…
173     4   420    35 mcc     multiclass 0.05737    10 0.05021 Preprocessor1_Mo…
174     4   788    39 mcc     multiclass 0.05735    10 0.03962 Preprocessor1_Mo…
175     4   975    40 mcc     multiclass 0.05733    10 0.04006 Preprocessor1_Mo…
176     4  1322    34 mcc     multiclass 0.05731    10 0.04577 Preprocessor1_Mo…
177     4   767    37 mcc     multiclass 0.05730    10 0.03882 Preprocessor1_Mo…
178     3   810    32 mcc     multiclass 0.05723    10 0.04469 Preprocessor1_Mo…
179     4   421    23 mcc     multiclass 0.05719    10 0.04207 Preprocessor1_Mo…
180     4  1190    19 mcc     multiclass 0.05719    10 0.03611 Preprocessor1_Mo…
181     4   731    32 mcc     multiclass 0.05717    10 0.04212 Preprocessor1_Mo…
182     4  1450    31 mcc     multiclass 0.05695    10 0.04547 Preprocessor1_Mo…
183     4  1207    39 mcc     multiclass 0.05683    10 0.04300 Preprocessor1_Mo…
184     4   638    39 mcc     multiclass 0.05683    10 0.05456 Preprocessor1_Mo…
185     2   731    25 mcc     multiclass 0.05682    10 0.03881 Preprocessor1_Mo…
186     2   492    38 mcc     multiclass 0.05675    10 0.03747 Preprocessor1_Mo…
187     3  1146    25 mcc     multiclass 0.05668    10 0.04046 Preprocessor1_Mo…
188     4   930    30 mcc     multiclass 0.05664    10 0.04479 Preprocessor1_Mo…
189     3  1167    29 mcc     multiclass 0.05664    10 0.04479 Preprocessor1_Mo…
190     3  1001    19 mcc     multiclass 0.05659    10 0.03703 Preprocessor1_Mo…
191     3  1268    37 mcc     multiclass 0.05657    10 0.04071 Preprocessor1_Mo…
192     4   605    33 mcc     multiclass 0.05630    10 0.04153 Preprocessor1_Mo…
193     4   569    18 mcc     multiclass 0.05627    10 0.03324 Preprocessor1_Mo…
194     3   516    29 mcc     multiclass 0.05625    10 0.03934 Preprocessor1_Mo…
195     3  1409    19 mcc     multiclass 0.05617    10 0.03987 Preprocessor1_Mo…
196     3  1316    39 mcc     multiclass 0.05614    10 0.04841 Preprocessor1_Mo…
197     3  1454    37 mcc     multiclass 0.05586    10 0.03991 Preprocessor1_Mo…
198     3   882    35 mcc     multiclass 0.05583    10 0.04587 Preprocessor1_Mo…
199     4  1433    40 mcc     multiclass 0.05570    10 0.04852 Preprocessor1_Mo…
200     4   927    33 mcc     multiclass 0.05568    10 0.04471 Preprocessor1_Mo…

Efikasnost - GOD_2021_2022

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.5161 0.3730
2 precision   macro       0.6735 0.4792
3 spec        macro       0.8768 0.8064
4 accuracy    multiclass  0.6728 0.4821
5 f_meas      macro       0.6683 0.4707
6 mcc         multiclass  0.5198 0.2369
7 kap         multiclass  0.5065 0.2274
8 roc_auc     hand_till   0.8770 0.6545
9 mn_log_loss multiclass  0.9152 1.158 

Confusion matrix

Column 2

ROC curve

Gain curve

Važnost prediktora - GOD_2021_2022

Columnn 1

Gini

permutacija

Column 2

Boruta

Boruta (history)

Usporedba modela

Column 1

Metrike: Model_2021 na podacima iz GOD_2021

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.5161 0.3730
2 precision   macro       0.6735 0.4792
3 spec        macro       0.8768 0.8064
4 accuracy    multiclass  0.6728 0.4821
5 f_meas      macro       0.6683 0.4707
6 mcc         multiclass  0.5198 0.2369
7 kap         multiclass  0.5065 0.2274
8 roc_auc     hand_till   0.8770 0.6545
9 mn_log_loss multiclass  0.9152 1.158 

Confusion matrix: Model_2021 na testnim podacima iz GOD_2021

Column 2

Metrike: Model_2021 na podacima iz GOD_2022

# A tibble: 9 × 3
  .metric     .estimator .estimate
  <chr>       <chr>          <dbl>
1 sens        macro         0.3811
2 precision   macro         0.4530
3 spec        macro         0.7996
4 accuracy    multiclass    0.4192
5 f_meas      macro         0.4120
6 mcc         multiclass    0.2302
7 kap         multiclass    0.1962
8 roc_auc     hand_till     0.6568
9 mn_log_loss multiclass    1.180 

Confusion matrix: Model_2021 na podacima iz GOD_2022

Učenje - GOD 2022_2023

Column 1

struktura 1

struktura 2

struktura 3

struktura 4

Column 2

Info - svi redovni studenti (GOD 2022 / 2023)

Opisi varijabli

  • KOL1 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na prvom kolokviju
  • KOL2 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na drugom kolokviju
  • KOL3 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na trećem kolokviju
  • KVIZ1 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima prije prvog kolokvija
  • KVIZ2 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima između prvog i drugog kolokvija
  • KVIZ3 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima nakon drugog kolokvija
  • ESEJ - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na eseju

Opisi struktura

  • struktura 1 - učenje pomoću hc algoritma na praznom digrafu
  • struktura 2 - učenje pomoću hc algoritma na praznom digrafu uz zabranjene lukove (KOL1, KVIZ1), (KOL2, KVIZ1), (KOL3, KVIZ1), (ESEJ, KVIZ1), (KOL2, KVIZ2), (KOL3, KVIZ2), (KVIZ3, KVIZ2), (ESEJ, KVIZ2)
  • struktura 3 - učenje pomoću gs algoritma na praznom digrafu, neki bridovi nemaju orijentaciju pa moramo sami odlučiti koju ćemo uzeti
  • struktura 4 - odabrane orijentacije za bridove iz strukture 3

BIC score

struktura 1

[1] -2511.71

struktura 2

[1] -2529.825

struktura 4

[1] -3120.295

Distribucije - struktura 1 (GOD 2022_2023)

Column 1

KOL1

KOL2 | KOL1

KOL3 | KOL2

KVIZ1 | KOL2

KVIZ2 | KOL2

KVIZ3 | ESEJ

ESEJ | KOL2

Column 2

struktura 1

marginalne distribucije

Distribucije - struktura 2 (GOD 2022_2023)

Column 1

KOL1 | KVIZ1

KOL2 | KOL1

KOL3 | KOL2

KVIZ1

KVIZ2 | KOL1

KVIZ3 | ESEJ

ESEJ | KOL2

Column 2

struktura 2

marginalne distribucije

Distribucije - struktura 4 (GOD 2022_2023)

Column 1

KOL1

KOL2 | KOL1,KVIZ1

KOL3 | KOL2,KVIZ2,KVIZ3

KVIZ1

KVIZ2

KVIZ3 | ESEJ

ESEJ

Column 2

struktura 4

marginalne distribucije

Postavljanje upita - struktura 2 (GOD 2022_2023)

Column 1

P(ESEJ | KOL1)

    KOL1
ESEJ          1         2         3         4
   1 0.56842726 0.3562066 0.1885628 0.1202602
   2 0.21293904 0.2329936 0.2294782 0.1726975
   3 0.17044617 0.2880833 0.3791959 0.4458639
   4 0.04818753 0.1227166 0.2027631 0.2611784

P(ESEJ | KVIZ1, KVIZ2)

, , KVIZ2 = 1

    KVIZ1
ESEJ         1         2         3         4
   1 0.4138881 0.3070431 0.2747756 0.3000248
   2 0.2234528 0.2277231 0.2252362 0.2239481
   3 0.2558795 0.3155638 0.3342412 0.3201728
   4 0.1067796 0.1496700 0.1657470 0.1558543

, , KVIZ2 = 2

    KVIZ1
ESEJ         1         2         3         4
   1 0.3072485 0.2474179 0.2131826 0.2164595
   2 0.2274193 0.2231080 0.2169238 0.2166479
   3 0.3152255 0.3510001 0.3725951 0.3707727
   4 0.1501067 0.1784740 0.1972985 0.1961199

, , KVIZ2 = 3

    KVIZ1
ESEJ         1         2         3         4
   1 0.2565847 0.2071432 0.1778105 0.1777907
   2 0.2254103 0.2136154 0.2050629 0.2048948
   3 0.3445401 0.3777065 0.3979112 0.3979637
   4 0.1734649 0.2015348 0.2192154 0.2193508

, , KVIZ2 = 4

    KVIZ1
ESEJ         1         2         3         4
   1 0.2878171 0.1908386 0.1638417 0.1678984
   2 0.2203711 0.2054186 0.1967098 0.1967563
   3 0.3284708 0.3905390 0.4096851 0.4073182
   4 0.1633410 0.2132038 0.2297634 0.2280271

Column 2

P(ESEJ | KOL2)

    KOL2
ESEJ           1         2          3          4
   1 0.689306358 0.2108150 0.09242424 0.04032258
   2 0.203757225 0.2547022 0.21363636 0.04032258
   3 0.099710983 0.3738245 0.40757576 0.62096774
   4 0.007225434 0.1606583 0.28636364 0.29838710

P(ESEJ | KOL1, KOL2)

, , KOL2 = 1

    KOL1
ESEJ           1           2           3           4
   1 0.689306358 0.689306358 0.689306358 0.689306358
   2 0.203757225 0.203757225 0.203757225 0.203757225
   3 0.099710983 0.099710983 0.099710983 0.099710983
   4 0.007225434 0.007225434 0.007225434 0.007225434

, , KOL2 = 2

    KOL1
ESEJ         1         2         3         4
   1 0.2108150 0.2108150 0.2108150 0.2108150
   2 0.2547022 0.2547022 0.2547022 0.2547022
   3 0.3738245 0.3738245 0.3738245 0.3738245
   4 0.1606583 0.1606583 0.1606583 0.1606583

, , KOL2 = 3

    KOL1
ESEJ          1          2          3          4
   1 0.09242424 0.09242424 0.09242424 0.09242424
   2 0.21363636 0.21363636 0.21363636 0.21363636
   3 0.40757576 0.40757576 0.40757576 0.40757576
   4 0.28636364 0.28636364 0.28636364 0.28636364

, , KOL2 = 4

    KOL1
ESEJ          1          2          3          4
   1 0.04032258 0.04032258 0.04032258 0.04032258
   2 0.04032258 0.04032258 0.04032258 0.04032258
   3 0.62096774 0.62096774 0.62096774 0.62096774
   4 0.29838710 0.29838710 0.29838710 0.29838710

Predikcije eseja - struktura 1 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.4071 0.3954
2 precision   macro       0.4349 0.3356
3 spec        macro       0.8184 0.8157
4 accuracy    multiclass  0.4980 0.4941
5 f_meas      macro       0.3396 0.4094
6 mcc         multiclass  0.3025 0.2986
7 kap         multiclass  0.2745 0.2634
8 roc_auc     hand_till   0.7375 0.6566
9 mn_log_loss multiclass  1.046  1.238 

Confusion matrix

Column 2

ROC curve

Gain curve

Predikcije eseja - struktura 2 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.3914 0.3864
2 precision   macro       0.3037 0.3272
3 spec        macro       0.8128 0.8116
4 accuracy    multiclass  0.4819 0.4824
5 f_meas      macro       0.3200 0.3999
6 mcc         multiclass  0.2768 0.2790
7 kap         multiclass  0.2515 0.2467
8 roc_auc     hand_till   0.7312 0.6655
9 mn_log_loss multiclass  1.052  1.237 

Confusion matrix

Column 2

ROC curve

Gain curve

Predikcije eseja - struktura 4 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro       0.4057 0.3607
2 precision   macro       0.5022 0.4472
3 spec        macro       0.8188 0.7993
4 accuracy    multiclass  0.5020 0.4471
5 f_meas      macro       0.6201 0.5504
6 mcc         multiclass  0.3151 0.2258
7 kap         multiclass  0.2769 0.1978
8 roc_auc     hand_till   0.6764 0.6566
9 mn_log_loss multiclass  1.157  1.238 

Confusion matrix

Column 2

ROC curve

Gain curve

Učenje - GOD 2022_2023

Column 1

struktura 1

struktura 2

struktura 3

struktura 4

Column 2

Info - redovni studenti koji su pisali esej (GOD 2022 / 2023)

Opisi varijabli

  • KOL1 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na prvom kolokviju
  • KOL2 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na drugom kolokviju
  • KOL3 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na trećem kolokviju
  • KVIZ1 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima prije prvog kolokvija
  • KVIZ2 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima između prvog i drugog kolokvija
  • KVIZ3 - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na kvizovima nakon drugog kolokvija
  • ESEJ - faktorska varijabla s 4 klase napravljene prema četvrtinama ukupnih bodova na eseju

Opisi struktura

  • struktura 1 - učenje pomoću hc algoritma na praznom digrafu
  • struktura 2 - učenje pomoću hc algoritma na praznom digrafu uz zabranjene lukove (KOL1, KVIZ1), (KOL2, KVIZ1), (KOL3, KVIZ1), (ESEJ, KVIZ1), (KOL2, KVIZ2), (KOL3, KVIZ2), (KVIZ3, KVIZ2), (ESEJ, KVIZ2)
  • struktura 3 - učenje pomoću gs algoritma na praznom digrafu, neki bridovi nemaju orijentaciju pa moramo sami odlučiti koju ćemo uzeti
  • struktura 4 - odabrane orijentacije za bridove iz strukture 3

BIC score

struktura 1

[1] -1811.749

struktura 2

[1] -1812.567

struktura 4

[1] -1967.687

Distribucije - struktura 1 (GOD 2022_2023)

Column 1

KOL1

KOL2 | KOL1

KOL3 | KOL2

KVIZ1 | KOL2

KVIZ2 | KOL2

KVIZ3

ESEJ

Column 2

struktura 1

marginalne distribucije

Distribucije - struktura 2 (GOD 2022_2023)

Column 1

KOL1

KOL2 | KOL1

KOL3 | KOL2

KVIZ1

KVIZ2

KVIZ3

ESEJ

Column 2

struktura 2

marginalne distribucije

Distribucije - struktura 4 (GOD 2022_2023)

Column 1

KOL1

KOL2 | KOL1,KVIZ1

KOL3 | KOL2,KVIZ2

KVIZ1

KVIZ2

KVIZ3

ESEJ | KOL1

Column 2

struktura 4

marginalne distribucije

Postavljanje upita - struktura 4 (GOD 2022_2023)

Column 1

P(ESEJ | KOL1)

    KOL1
ESEJ         1          2          3          4
   1 0.2338710 0.02241379 0.03111588 0.01811594
   2 0.5564516 0.43620690 0.24570815 0.16304348
   3 0.1048387 0.47758621 0.42596567 0.45289855
   4 0.1048387 0.06379310 0.29721030 0.36594203

P(ESEJ | KVIZ1, KVIZ2)

, , KVIZ2 = 1

    KVIZ1
ESEJ          1          2          3          4
   1 0.03974895 0.03974895 0.03974895 0.03974895
   2 0.31171548 0.31171548 0.31171548 0.31171548
   3 0.42468619 0.42468619 0.42468619 0.42468619
   4 0.22384937 0.22384937 0.22384937 0.22384937

, , KVIZ2 = 2

    KVIZ1
ESEJ          1          2          3          4
   1 0.03974895 0.03974895 0.03974895 0.03974895
   2 0.31171548 0.31171548 0.31171548 0.31171548
   3 0.42468619 0.42468619 0.42468619 0.42468619
   4 0.22384937 0.22384937 0.22384937 0.22384937

, , KVIZ2 = 3

    KVIZ1
ESEJ          1          2          3          4
   1 0.03974895 0.03974895 0.03974895 0.03974895
   2 0.31171548 0.31171548 0.31171548 0.31171548
   3 0.42468619 0.42468619 0.42468619 0.42468619
   4 0.22384937 0.22384937 0.22384937 0.22384937

, , KVIZ2 = 4

    KVIZ1
ESEJ          1          2          3          4
   1 0.03974895 0.03974895 0.03974895 0.03974895
   2 0.31171548 0.31171548 0.31171548 0.31171548
   3 0.42468619 0.42468619 0.42468619 0.42468619
   4 0.22384937 0.22384937 0.22384937 0.22384937

Column 2

P(ESEJ | KOL2)

    KOL2
ESEJ          1          2          3         4
   1 0.08126582 0.03727185 0.03070164 0.0442212
   2 0.43579212 0.33025571 0.25548130 0.2464545
   3 0.36874794 0.43122822 0.43290159 0.4109148
   4 0.11419412 0.20124423 0.28091548 0.2984096

P(ESEJ | KOL1, KOL2)

, , KOL2 = 1

    KOL1
ESEJ         1          2          3          4
   1 0.2338710 0.02241379 0.03111588 0.01811594
   2 0.5564516 0.43620690 0.24570815 0.16304348
   3 0.1048387 0.47758621 0.42596567 0.45289855
   4 0.1048387 0.06379310 0.29721030 0.36594203

, , KOL2 = 2

    KOL1
ESEJ         1          2          3          4
   1 0.2338710 0.02241379 0.03111588 0.01811594
   2 0.5564516 0.43620690 0.24570815 0.16304348
   3 0.1048387 0.47758621 0.42596567 0.45289855
   4 0.1048387 0.06379310 0.29721030 0.36594203

, , KOL2 = 3

    KOL1
ESEJ         1          2          3          4
   1 0.2338710 0.02241379 0.03111588 0.01811594
   2 0.5564516 0.43620690 0.24570815 0.16304348
   3 0.1048387 0.47758621 0.42596567 0.45289855
   4 0.1048387 0.06379310 0.29721030 0.36594203

, , KOL2 = 4

    KOL1
ESEJ         1          2          3          4
   1 0.2338710 0.02241379 0.03111588 0.01811594
   2 0.5564516 0.43620690 0.24570815 0.16304348
   3 0.1048387 0.47758621 0.42596567 0.45289855
   4 0.1048387 0.06379310 0.29721030 0.36594203

Predikcije eseja - struktura 1 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator  trening     test
  <chr>       <chr>         <dbl>    <dbl>
1 sens        macro        0.25     0.25  
2 precision   macro        0.4412   0.4068
3 spec        macro        0.75     0.75  
4 accuracy    multiclass   0.4412   0.4068
5 f_meas      macro        0.6122   0.5783
6 mcc         multiclass NaN      NaN     
7 kap         multiclass   0        0     
8 roc_auc     hand_till    0.4989   0.5302
9 mn_log_loss multiclass   1.133    1.280 

Confusion matrix

Column 2

ROC curve

Gain curve

Predikcije eseja - struktura 2 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator  trening     test
  <chr>       <chr>         <dbl>    <dbl>
1 sens        macro        0.25     0.25  
2 precision   macro        0.4412   0.4068
3 spec        macro        0.75     0.75  
4 accuracy    multiclass   0.4412   0.4068
5 f_meas      macro        0.6122   0.5783
6 mcc         multiclass NaN      NaN     
7 kap         multiclass   0        0     
8 roc_auc     hand_till    0.4579   0.5587
9 mn_log_loss multiclass   1.142    1.277 

Confusion matrix

Column 2

ROC curve

Gain curve

Predikcije eseja - struktura 4 (GOD 2022_2023)

Column 1

Metrike na testnom i trening skupu

# A tibble: 9 × 4
  .metric     .estimator trening   test
  <chr>       <chr>        <dbl>  <dbl>
1 sens        macro      0.2789  0.3021
2 precision   macro      0.4888  0.5143
3 spec        macro      0.7658  0.7756
4 accuracy    multiclass 0.4647  0.4576
5 f_meas      macro      0.4576  0.5020
6 mcc         multiclass 0.1029  0.1547
7 kap         multiclass 0.06992 0.1115
8 roc_auc     hand_till  0.6952  0.5302
9 mn_log_loss multiclass 1.041   1.280 

Confusion matrix

Column 2

ROC curve

Gain curve

---
title: "MAT2 chatGPT - (verzija 3)"
output: 
  flexdashboard::flex_dashboard:
    orientation: columns
    vertical_layout: fill
    source_code: embed
---

```{css, echo=FALSE}
.sidebar { overflow: auto; }
.dataTables_scrollBody {
    height:95% !important;
    max-height:95% !important;
}
.chart-stage-flex {
    overflow:auto !important;
}
```

```{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
library(readxl)
library(corrplot)
library(GGally)
library(knitr)
library(kableExtra)
library(bnlearn)
library(Rgraphviz)
library(gRain)
library(tidymodels)
library(Boruta)
library(vip)
options(pillar.sigfig = 4)

imena <- c("KOL1" = "EXAM 1", "KOL2" = "EXAM 2", "KOL3" = "EXAM 3",
           "ESEJ" = "ESSAY", "DZ" = "HOMEWORK", "KVIZ" = "QUIZ")

esej2_chatGPT <- readRDS("podaci/ESEJ_2022_2023_chatGPT.rds")
esej2_redovni <- readRDS("podaci/ESEJ_2022_2023_redovni.rds")
esej1_pisali <- readRDS("podaci/ESEJ_2021_2022_pisaliEsej.rds")
esej1_redovni <- readRDS("podaci/ESEJ_2021_2022_redovni.rds")

rf_metrike <- metric_set(roc_auc, sens, precision, spec, accuracy, f_meas, mcc, kap, mn_log_loss)
update_geom_defaults(geom = "tile", new = list(color = "black"))

RF_fit_model1 <- readRDS("model1/RF_fit.rds")
RF_tuning_model1 <- readRDS("model1/RF_tuning.rds")
RF_work_model1 <- readRDS("model1/RF_work.rds")
RF_fit_perm_model1 <- readRDS("model1/RF_fit_perm.rds")
RF_work_perm_model1 <- readRDS("model1/RF_work_perm.rds")
RF_Boruta_model1 <- readRDS("model1/RF_Boruta.rds")

RF_fit_model2 <- readRDS("model2/RF_fit.rds")
RF_tuning_model2 <- readRDS("model2/RF_tuning.rds")
RF_work_model2 <- readRDS("model2/RF_work.rds")
RF_fit_perm_model2 <- readRDS("model2/RF_fit_perm.rds")
RF_work_perm_model2 <- readRDS("model2/RF_work_perm.rds")
RF_Boruta_model2 <- readRDS("model2/RF_Boruta.rds")

RF_fit_model3 <- readRDS("model3/RF_fit.rds")
RF_tuning_model3 <- readRDS("model3/RF_tuning.rds")
RF_work_model3 <- readRDS("model3/RF_work.rds")
RF_fit_perm_model3 <- readRDS("model3/RF_fit_perm.rds")
RF_work_perm_model3 <- readRDS("model3/RF_work_perm.rds")
RF_Boruta_model3 <- readRDS("model3/RF_Boruta.rds")

RF_fit_model4 <- readRDS("model4/RF_fit.rds")
RF_tuning_model4 <- readRDS("model4/RF_tuning.rds")
RF_work_model4 <- readRDS("model4/RF_work.rds")
RF_fit_perm_model4 <- readRDS("model4/RF_fit_perm.rds")
RF_work_perm_model4 <- readRDS("model4/RF_work_perm.rds")
RF_Boruta_model4 <- readRDS("model4/RF_Boruta.rds")

podaci2022 <- esej2_chatGPT %>%
  select(KOL1:ESEJ) %>%
  mutate(ESEJ = case_when(ESEJ <= 2.5 ~ "1", 
                          ESEJ <= 5 ~ "2",
                          ESEJ <= 7.5 ~ "3",
                          .default = "4")) %>%
  mutate_at(c("ESEJ"), ~fct_relevel(., c("1","2","3","4")))

predikcije1 <- predict(RF_fit_model4 %>% extract_workflow(), new_data = podaci2022, type = "prob")
predikcije2 <- predict(RF_fit_model4 %>% extract_workflow(), new_data = podaci2022, type = "class")
predikcije <- predikcije2 %>% bind_cols(predikcije1, ESEJ = podaci2022$ESEJ)

model2021_svi <- readRDS("model3/RF_fit.rds")
podaci2022_svi <- esej2_redovni %>%
  select(KOL1:ESEJ) %>%
  mutate(ESEJ = case_when(ESEJ <= 2.5 ~ "1", 
                          ESEJ <= 5 ~ "2",
                          ESEJ <= 7.5 ~ "3",
                          .default = "4")) %>%
  mutate_at(c("ESEJ"), ~fct_relevel(., c("1","2","3","4")))

predikcije1_svi <- predict(model2021_svi %>% extract_workflow(), new_data = podaci2022_svi, type = "prob")
predikcije2_svi <- predict(model2021_svi %>% extract_workflow(), new_data = podaci2022_svi, type = "class")
predikcije_svi <- predikcije2_svi %>% bind_cols(predikcije1_svi, ESEJ = podaci2022_svi$ESEJ)

mat1_bayes1 <- readRDS("model1/mat1.rds")
mat1_tr_bayes1 <- readRDS("model1/mat1_tr.rds")
mat2_bayes1 <- readRDS("model1/mat2.rds")
mat2_tr_bayes1 <- readRDS("model1/mat2_tr.rds")
mat3_bayes1 <- readRDS("model1/mat3.rds")
mat3_tr_bayes1 <- readRDS("model1/mat3_tr.rds")

mat1_bayes2 <- readRDS("model2/mat1.rds")
mat1_tr_bayes2 <- readRDS("model2/mat1_tr.rds")
mat2_bayes2 <- readRDS("model2/mat2.rds")
mat2_tr_bayes2 <- readRDS("model2/mat2_tr.rds")
mat3_bayes2 <- readRDS("model2/mat3.rds")
mat3_tr_bayes2 <- readRDS("model2/mat3_tr.rds")

learn1_bayes1 <- readRDS("model1/learn1.rds")
learn2_bayes1 <- readRDS("model1/learn2.rds")
learn3_bayes1 <- readRDS("model1/learn3.rds")
dag3_bayes1 <- readRDS("model1/dag3.rds")

learn1_bayes2 <- readRDS("model2/learn1.rds")
learn2_bayes2 <- readRDS("model2/learn2.rds")
learn3_bayes2 <- readRDS("model2/learn3.rds")
dag3_bayes2 <- readRDS("model2/dag3.rds")

bn1_bayes1 <- readRDS("model1/bn1.rds")
bn2_bayes1 <- readRDS("model1/bn2.rds")
bn3_bayes1 <- readRDS("model1/bn3.rds")

bn1_bayes2 <- readRDS("model2/bn1.rds")
bn2_bayes2 <- readRDS("model2/bn2.rds")
bn3_bayes2 <- readRDS("model2/bn3.rds")

kviz1 <- read_csv("MAT2_2022_2023_kvizovi.csv") %>%
  right_join(esej2_redovni %>% select(mail, Kategorija), by = "mail")

kviz2 <- read_csv("MAT2_2022_2023_kvizovi.csv") %>%
  right_join(esej2_chatGPT %>% select(mail, Kategorija), by = "mail")

kviz3 <- read_csv("MAT2_2021_2022_kvizovi.csv") %>%
  right_join(esej1_redovni %>% select(mail, Kategorija), by = "mail")

bayes1_podaci <- esej2_redovni %>% left_join(kviz1, by = "mail") %>%
  mutate(KVIZ1 = rowSums(across(K1:K4), na.rm = TRUE), 
         KVIZ2 = rowSums(across(K5:K9), na.rm = TRUE),
         KVIZ3 = rowSums(across(K10:K13), na.rm = TRUE)) %>%
  select(KOL1, KOL2, KOL3, ESEJ, KVIZ1, KVIZ2, KVIZ3) %>%
  replace(is.na(.), 0)

bayes2_podaci <- esej2_chatGPT %>% left_join(kviz2, by = "mail") %>%
  mutate(KVIZ1 = rowSums(across(K1:K4), na.rm = TRUE), 
         KVIZ2 = rowSums(across(K5:K9), na.rm = TRUE),
         KVIZ3 = rowSums(across(K10:K13), na.rm = TRUE)) %>%
  select(KOL1, KOL2, KOL3, ESEJ, KVIZ1, KVIZ2, KVIZ3) %>%
  replace(is.na(.), 0)

bayes3_podaci <- esej1_redovni %>% left_join(kviz3, by = "mail") %>%
  mutate(KVIZ1 = rowSums(across(K1:K4), na.rm = TRUE), 
         KVIZ2 = rowSums(across(K5:K9), na.rm = TRUE),
         KVIZ3 = rowSums(across(K10:K13), na.rm = TRUE)) %>%
  select(KOL1, KOL2, KOL3, ESEJ, KVIZ1, KVIZ2, KVIZ3) %>%
  replace(is.na(.), 0)

bayes1_klase <- bayes1_podaci %>%
  mutate(KOL1 = case_when(KOL1 <= 5 ~ "1", 
                          KOL1 <= 10 ~ "2",
                          KOL1 <= 15 ~ "3",
                          .default = "4"),
         KOL2 = case_when(KOL2 <= 5 ~ "1", 
                          KOL2 <= 10 ~ "2",
                          KOL2 <= 15 ~ "3",
                          .default = "4"),
         KOL3 = case_when(KOL3 <= 5 ~ "1",
                          KOL3 <= 10 ~ "2",
                          KOL3 <= 15 ~ "3",
                          .default = "4"),
         ESEJ = case_when(ESEJ <= 2.5 ~ "1", 
                          ESEJ <= 5 ~ "2",
                          ESEJ <= 7.5 ~ "3",
                          .default = "4"),
         KVIZ1 = case_when(KVIZ1 <= 1.75 ~ "1", 
                           KVIZ1 <= 3.5 ~ "2",
                           KVIZ1 <= 5.25 ~ "3",
                           .default = "4"),
         KVIZ2 = case_when(KVIZ2 <= 2 ~ "1", 
                           KVIZ2 <= 4 ~ "2",
                           KVIZ2 <= 6 ~ "3",
                           .default = "4"),
         KVIZ3 = case_when(KVIZ3 <= 1.25 ~ "1", 
                           KVIZ3 <= 2.5 ~ "2",
                           KVIZ3 <= 3.75 ~ "3",
                           .default = "4")) %>%
  mutate_all(~fct_relevel(., c("1","2","3","4")))

bayes2_klase <- bayes2_podaci %>%
  mutate(KOL1 = case_when(KOL1 <= 5 ~ "1", 
                          KOL1 <= 10 ~ "2",
                          KOL1 <= 15 ~ "3",
                          .default = "4"),
         KOL2 = case_when(KOL2 <= 5 ~ "1", 
                          KOL2 <= 10 ~ "2",
                          KOL2 <= 15 ~ "3",
                          .default = "4"),
         KOL3 = case_when(KOL3 <= 5 ~ "1",
                          KOL3 <= 10 ~ "2",
                          KOL3 <= 15 ~ "3",
                          .default = "4"),
         ESEJ = case_when(ESEJ <= 2.5 ~ "1", 
                          ESEJ <= 5 ~ "2",
                          ESEJ <= 7.5 ~ "3",
                          .default = "4"),
         KVIZ1 = case_when(KVIZ1 <= 1.75 ~ "1", 
                           KVIZ1 <= 3.5 ~ "2",
                           KVIZ1 <= 5.25 ~ "3",
                           .default = "4"),
         KVIZ2 = case_when(KVIZ2 <= 2 ~ "1", 
                           KVIZ2 <= 4 ~ "2",
                           KVIZ2 <= 6 ~ "3",
                           .default = "4"),
         KVIZ3 = case_when(KVIZ3 <= 1.25 ~ "1", 
                           KVIZ3 <= 2.5 ~ "2",
                           KVIZ3 <= 3.75 ~ "3",
                           .default = "4")) %>%
  mutate_all(~fct_relevel(., c("1","2","3","4")))

bayes3_klase <- bayes3_podaci %>%
  mutate(KOL1 = case_when(KOL1 <= 5 ~ "1", 
                          KOL1 <= 10 ~ "2",
                          KOL1 <= 15 ~ "3",
                          .default = "4"),
         KOL2 = case_when(KOL2 <= 5 ~ "1", 
                          KOL2 <= 10 ~ "2",
                          KOL2 <= 15 ~ "3",
                          .default = "4"),
         KOL3 = case_when(KOL3 <= 5 ~ "1",
                          KOL3 <= 10 ~ "2",
                          KOL3 <= 15 ~ "3",
                          .default = "4"),
         ESEJ = case_when(ESEJ <= 2.5 ~ "1", 
                          ESEJ <= 5 ~ "2",
                          ESEJ <= 7.5 ~ "3",
                          .default = "4"),
         KVIZ1 = case_when(KVIZ1 <= 1.75 ~ "1", 
                           KVIZ1 <= 3.5 ~ "2",
                           KVIZ1 <= 5.25 ~ "3",
                           .default = "4"),
         KVIZ2 = case_when(KVIZ2 <= 2 ~ "1", 
                           KVIZ2 <= 4 ~ "2",
                           KVIZ2 <= 6 ~ "3",
                           .default = "4"),
         KVIZ3 = case_when(KVIZ3 <= 1.25 ~ "1", 
                           KVIZ3 <= 2.5 ~ "2",
                           KVIZ3 <= 3.75 ~ "3",
                           .default = "4")) %>%
  mutate_all(~fct_relevel(., c("1","2","3","4")))

bayes1_klase <- as.data.frame(bayes1_klase)
bayes2_klase <- as.data.frame(bayes2_klase)
bayes3_klase <- as.data.frame(bayes3_klase)
```

Općenite informacije {data-navmenu="Deskriptiva"}
=======================================================================

### Modeli

* **Forest 1** - slučajna šuma na svim redovnim studentima
* **Forest 2** - slučajna šuma na redovnim studentima koji su pisali esej
* **Bayes NET 1** - Bayesove mreže na svim redovnim studentima
* **Bayes NET 2** - Bayesove mreže na redovnim studentima koji su pisali esej

### Direktoriji koji sadrže spremljene modele

* **model1** - modeli na svim redovnim studentima za akademsku godinu 2022 / 2023
* **model2** - modeli na redovnim studentima koji su pisali esej za akademsku godinu 2022 / 2023
* **model3** - modeli na svim redovnim studentima za akademsku godinu 2021 / 2022
* **model4** - modeli na redovnim studentima koji su pisali esej za akademsku godinu 2021 / 2022

Esej {data-navmenu="Deskriptiva"}
=======================================================================

Column {.tabset .tabset-fade}
-----------------------------------------------------------------------

### četvrtine 1

```{r}
ggplot(esej2_chatGPT, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kategorija)) +
  labs(caption = "redovni ChatGPT studenti (GOD 2022 / 2023)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### kvartili 1

```{r}
ggplot(esej2_chatGPT, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kat_kvartil)) +
  labs(caption = "redovni ChatGPT studenti (GOD 2022 / 2023)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### četvrtine 2

```{r}
ggplot(esej2_redovni, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kategorija)) +
  labs(caption = "svi redovni studenti (GOD 2022 / 2023)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### kvartili 2

```{r}
ggplot(esej2_redovni, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kat_kvartil)) +
  labs(caption = "svi redovni studenti (GOD 2022 / 2023)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### Info

```{r}
esej2_chatGPT %>% group_by(Kategorija) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej2_chatGPT %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kategorija = c("SVI"))) %>%
  kbl(caption = "četvrtine 1 - info") %>% kable_styling()
```

```{r}
esej2_chatGPT %>% group_by(Kat_kvartil) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej2_chatGPT %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kat_kvartil = c("SVI"))) %>%
  kbl(caption = "kvartili 1 - info") %>% kable_styling()
```

```{r}
esej2_redovni %>% group_by(Kategorija) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej2_redovni %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kategorija = c("SVI"))) %>%
  kbl(caption = "četvrtine 2 - info") %>% kable_styling()
```

```{r}
esej2_redovni %>% group_by(Kat_kvartil) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej2_redovni %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kat_kvartil = c("SVI"))) %>%
  kbl(caption = "kvartili 2 - info") %>% kable_styling()
```

Column {.tabset .tabset-fade}
-----------------------------------------------------------------------

### četvrtine 1

```{r}
ggplot(esej1_pisali, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kategorija)) +
  labs(caption = "redovni studenti koji su pisali esej (GOD 2021 / 2022)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### kvartili 1

```{r}
ggplot(esej1_pisali, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kat_kvartil)) +
  labs(caption = "redovni studenti koji su pisali esej (GOD 2021 / 2022)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### četvrtine 2

```{r}
ggplot(esej1_redovni, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kategorija)) +
  labs(caption = "svi redovni studenti (GOD 2021 / 2022)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### kvartili 2

```{r}
ggplot(esej1_redovni, aes(x=ESEJ)) + 
  geom_histogram(binwidth = 1, boundary=1, color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  scale_x_continuous(breaks = seq(0,10,1), limits = c(0,10)) +
  facet_wrap(vars(Kat_kvartil)) +
  labs(caption = "svi redovni studenti (GOD 2021 / 2022)",
       x = "ESSAY POINTS", y = "NUMBER OF STUDENTS")
```

### Info

```{r}
esej1_pisali %>% group_by(Kategorija) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej1_pisali %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kategorija = c("SVI"))) %>%
  kbl(caption = "četvrtine 1 - info") %>% kable_styling()
```

```{r}
esej1_pisali %>% group_by(Kat_kvartil) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej1_pisali %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kat_kvartil = c("SVI"))) %>%
  kbl(caption = "kvartili 1 - info") %>% kable_styling()
```

```{r}
esej1_redovni %>% group_by(Kategorija) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej1_redovni %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kategorija = c("SVI"))) %>%
  kbl(caption = "četvrtine 2 - info") %>% kable_styling()
```

```{r}
esej1_redovni %>% group_by(Kat_kvartil) %>%
  summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
  bind_rows(esej1_redovni %>% summarize(BROJ = n(), MEAN = mean(ESEJ), SD = sd(ESEJ)) %>%
              mutate(Kat_kvartil = c("SVI"))) %>%
  kbl(caption = "kvartili 2 - info") %>% kable_styling()
```

Korelacije {data-navmenu="Deskriptiva"}
=======================================================================

Column 1
-----------------------------------------------------------------------

### svi redovni (2021 / 2022)

```{r}
kor1_redovni <- esej1_redovni %>% 
  select(c(KOL1, KOL2, KOL3, KVIZ, DZ, ESEJ))
test_kor1_redovni <- cor.mtest(kor1_redovni, conf.level = 0.975)
corrplot(round(cor(kor1_redovni, use = "pairwise.complete.obs"), 2), type = "lower",
         diag=FALSE, addCoef.col = 'black', tl.srt = 45) 
```

### redovni koji su pisali esej (2021 / 2022)

```{r}
kor1_pisali <- esej1_pisali %>% 
  select(c(KOL1, KOL2, KOL3, KVIZ, DZ, ESEJ))
test_kor1_pisali <- cor.mtest(kor1_pisali, conf.level = 0.975)
corrplot(round(cor(kor1_pisali, use = "pairwise.complete.obs"), 2), type = "lower",
         diag=FALSE, addCoef.col = 'black', tl.srt = 45) 
```

Column 2
-----------------------------------------------------------------------

### svi redovni (2022 / 2023)

```{r}
kor2_redovni <- esej2_redovni %>% 
  select(c(KOL1, KOL2, KOL3, KVIZ, DZ, ESEJ))
test_kor2_redovni <- cor.mtest(kor2_redovni, conf.level = 0.975)
corrplot(round(cor(kor2_redovni, use = "pairwise.complete.obs"), 2), type = "lower",
         diag=FALSE, addCoef.col = 'black', tl.srt = 45) 
```

### redovni koji su pisali esej (2022 / 2023)

```{r}
kor2_pisali <- esej2_chatGPT %>% 
  select(c(KOL1, KOL2, KOL3, KVIZ, DZ, ESEJ))
test_kor2_pisali <- cor.mtest(kor2_pisali, conf.level = 0.975)
corrplot(round(cor(kor2_pisali, use = "pairwise.complete.obs"), 2), type = "lower",
         diag=FALSE, addCoef.col = 'black', tl.srt = 45) 
```

Značajnost korelacija {data-navmenu="Deskriptiva"}
=======================================================================

Column 1
-----------------------------------------------------------------------

### svi redovni (2021 / 2022)

```{r}
corrplot(round(cor(kor1_redovni, use = "pairwise.complete.obs"), 2),
         p.mat = test_kor2_pisali$p, type = "lower", diag = FALSE,
         sig.level = c(0.001, 0.01, 0.05), insig = 'label_sig',
         pch.cex = 1.5, pch.col = 'yellow') 
```

### redovni koji su pisali esej (2021 / 2022)

```{r}
corrplot(round(cor(kor1_pisali, use = "pairwise.complete.obs"), 2),
         p.mat = test_kor2_pisali$p, type = "lower", diag = FALSE,
         sig.level = c(0.001, 0.01, 0.05), insig = 'label_sig',
         pch.cex = 1.5, pch.col = 'yellow') 
```

Column 2
-----------------------------------------------------------------------

### svi redovni (2022 / 2023)

```{r}
corrplot(round(cor(kor2_redovni, use = "pairwise.complete.obs"), 2),
         p.mat = test_kor2_pisali$p, type = "lower", diag = FALSE,
         sig.level = c(0.001, 0.01, 0.05), insig = 'label_sig',
         pch.cex = 1.5, pch.col = 'yellow') 
```

### redovni koji su pisali esej (2022 / 2023)

```{r}
corrplot(round(cor(kor2_pisali, use = "pairwise.complete.obs"), 2),
         p.mat = test_kor2_pisali$p, type = "lower", diag = FALSE,
         sig.level = c(0.001, 0.01, 0.05), insig = 'label_sig',
         pch.cex = 1.5, pch.col = 'yellow') 
```

Korelacije - verzija 2 {data-navmenu="Deskriptiva"}
=======================================================================

Column 1
-----------------------------------------------------------------------

### svi redovni (2021 / 2022)

```{r}
ggpairs(esej1_redovni, columns = 5:10,
        lower = list(continuous = wrap("smooth", alpha=0.5, size=1, color = "red")),
        diag = list(continuous = function(...) 
          ggally_densityDiag(..., fill="skyblue", alpha = 0.5)),
        upper = list(continuous = wrap(ggally_cor, alignPercent = 0.8, digits=2)),
        labeller = as_labeller(imena)) + theme_bw() +
  theme(strip.text = element_text(size = 7)) +
  scale_x_continuous(breaks = scales::pretty_breaks()) +
  scale_y_continuous(breaks = scales::pretty_breaks())
```

### redovni koji su pisali esej (2021 / 2022)

```{r}
ggpairs(esej1_pisali, columns = 5:10,
        lower = list(continuous = wrap("smooth", alpha=0.5, size=1, color = "red")),
        diag = list(continuous = function(...) 
          ggally_densityDiag(..., fill="skyblue", alpha = 0.5)),
        upper = list(continuous = wrap(ggally_cor, alignPercent = 0.8, digits=2)),
        labeller = as_labeller(imena)) + theme_bw() +
  theme(strip.text = element_text(size = 7)) +
  scale_x_continuous(breaks = scales::pretty_breaks()) +
  scale_y_continuous(breaks = scales::pretty_breaks())
```

Column 2
-----------------------------------------------------------------------

### svi redovni (2022 / 2023)

```{r}
ggpairs(esej2_redovni, columns = 5:10,
        lower = list(continuous = wrap("smooth", alpha=0.5, size=1, color = "red")),
        diag = list(continuous = function(...) 
          ggally_densityDiag(..., fill="skyblue", alpha = 0.5)),
        upper = list(continuous = wrap(ggally_cor, alignPercent = 0.8, digits=2)),
        labeller = as_labeller(imena)) + theme_bw() +
  theme(strip.text = element_text(size = 7)) +
  scale_x_continuous(breaks = scales::pretty_breaks()) +
  scale_y_continuous(breaks = scales::pretty_breaks())
```

### redovni koji su pisali esej (2022 / 2023)

```{r}
ggpairs(esej2_chatGPT, columns = 5:10,
        lower = list(continuous = wrap("smooth", alpha=0.5, size=1, color = "red")),
        diag = list(continuous = function(...) 
          ggally_densityDiag(..., fill="skyblue", alpha = 0.5)),
        upper = list(continuous = wrap(ggally_cor, alignPercent = 0.8, digits=2)),
        labeller = as_labeller(imena)) + theme_bw() +
  theme(strip.text = element_text(size = 7)) +
  scale_x_continuous(breaks = scales::pretty_breaks()) +
  scale_y_continuous(breaks = scales::pretty_breaks())
```

Distribucije eseja {data-navmenu="Deskriptiva"}
=======================================================================

Column 1
-----------------------------------------------------------------------

### svi redovni (2021 / 2022)

```{r}
ggplot(esej1_redovni, aes(x = ESEJ)) + 
  geom_histogram(aes(y = after_stat(density)), binwidth = 1, boundary=1, 
                 color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  geom_density(alpha=.2, fill="yellow") +
  scale_x_continuous( breaks = scales::pretty_breaks()) + 
  scale_y_continuous(limits = c(0, 0.33)) +
  geom_rug(alpha=0.3) +
  labs(x = "ESSAY POINTS", y = "DENSITY") +
  geom_vline(aes(xintercept= mean(ESEJ)), color= "blue", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  geom_vline(aes(xintercept= median(ESEJ)), color= "magenta", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  annotate(geom="point", x=9, y=0.245, size=2, shape=21, fill="magenta",color="magenta") +
  annotate(geom="text", x=9.1, y=0.245, label="median",size=3.5,hjust=0) +
  annotate(geom="point", x=9, y=0.23, size=2, shape=21, fill="blue",color="blue") +
  annotate(geom="text", x=9.1, y=0.23, label="mean",size=3.5,hjust=0)
```

### redovni koji su pisali esej (2021 / 2022)

```{r}
ggplot(esej1_pisali, aes(x = ESEJ)) + 
  geom_histogram(aes(y = after_stat(density)), binwidth = 1, boundary=1, 
                 color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  geom_density(alpha=.2, fill="yellow") +
  scale_x_continuous( breaks = scales::pretty_breaks()) + 
  scale_y_continuous(limits = c(0, 0.33)) +
  geom_rug(alpha=0.3) +
  labs(x = "ESSAY POINTS", y = "DENSITY") +
  geom_vline(aes(xintercept= mean(ESEJ)), color= "blue", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  geom_vline(aes(xintercept= median(ESEJ)), color= "magenta", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  annotate(geom="point", x=9, y=0.245, size=2, shape=21, fill="magenta",color="magenta") +
  annotate(geom="text", x=9.1, y=0.245, label="median",size=3.5,hjust=0) +
  annotate(geom="point", x=9, y=0.23, size=2, shape=21, fill="blue",color="blue") +
  annotate(geom="text", x=9.1, y=0.23, label="mean",size=3.5,hjust=0) +
  geom_blank(tibble(x=0,y=0), mapping = aes(x=x, y=y))
```

Column 2
-----------------------------------------------------------------------

### svi redovni (2022 / 2023)

```{r}
ggplot(esej2_redovni, aes(x = ESEJ)) + 
  geom_histogram(aes(y = after_stat(density)), binwidth = 1, boundary=1, 
                 color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  geom_density(alpha=.2, fill="yellow") +
  scale_x_continuous( breaks = scales::pretty_breaks()) + 
  scale_y_continuous(limits = c(0, 0.33)) +
  geom_rug(alpha=0.3) +
  labs(x = "ESSAY POINTS", y = "DENSITY") +
  geom_vline(aes(xintercept= mean(ESEJ)), color= "blue", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  geom_vline(aes(xintercept= median(ESEJ)), color= "magenta", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  annotate(geom="point", x=9, y=0.245, size=2, shape=21, fill="magenta",color="magenta") +
  annotate(geom="text", x=9.1, y=0.245, label="median",size=3.5,hjust=0) +
  annotate(geom="point", x=9, y=0.23, size=2, shape=21, fill="blue",color="blue") +
  annotate(geom="text", x=9.1, y=0.23, label="mean",size=3.5,hjust=0)
```

### redovni koji su pisali esej (2022 / 2023)

```{r}
ggplot(esej2_chatGPT, aes(x = ESEJ)) + 
  geom_histogram(aes(y = after_stat(density)), binwidth = 1, boundary=1, 
                 color="#ec8ae5", fill="#48d09b", alpha=0.7) +
  geom_density(alpha=.2, fill="yellow") +
  scale_x_continuous( breaks = scales::pretty_breaks()) + 
  scale_y_continuous(limits = c(0, 0.33)) +
  geom_rug(alpha=0.3) +
  labs(x = "ESSAY POINTS", y = "DENSITY") +
  geom_vline(aes(xintercept= mean(ESEJ)), color= "blue", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  geom_vline(aes(xintercept= median(ESEJ)), color= "magenta", 
             linetype="dashed", linewidth=0.5, alpha=0.3) +
  annotate(geom="point", x=9, y=0.245, size=2, shape=21, fill="magenta",color="magenta") +
  annotate(geom="text", x=9.1, y=0.245, label="median",size=3.5,hjust=0) +
  annotate(geom="point", x=9, y=0.23, size=2, shape=21, fill="blue",color="blue") +
  annotate(geom="text", x=9.1, y=0.23, label="mean",size=3.5,hjust=0)
```

Opis modela {data-navmenu="Forest 1"}
=======================================================================

### Opis modela - svi redovni studenti

**Prediktori**

- KVIZ - suma bodova na kvizovima
- DZ - suma bodova na domaćim zadaćama
- KOL1 - broj bodova na prvom kolokviju 
- KOL2 - broj bodova na drugom kolokviju 
- KOL3 - broj bodova na trećem kolokviju 

**Response** - Klasifikacija studenata na temelju broja bodova eseju.

- **1** - ako je na eseju ukupni broj bodova unutar intervala [0, 2.5]
- **2** - ako je na eseju ukupni broj bodova unutar intervala (2.5, 5]
- **3** - ako je na eseju ukupni broj bodova unutar intervala (5, 7.5]
- **4** - ako je na eseju ukupni broj bodova unutar intervala (7.5, 10]

**Hiperparametri** - za odabir optimalne kombinacije hiperparametara napravljen je 
cross-validation s 10 *kutija* pri čemu je na slučajni način isprobano 1000 kombinacija 
hiperparametara *mtry*, *min_n* i *trees*. Najbolji model je odabran s obzirom na *roc_auc*
metriku.

- *mtry* - uzimane su vrijednosti iz skupa {2, 3, 4}
- *trees* - uzimani su prirodni brojevi između 400 i 1500
- *min_n* - uzimani su prirodni brojevi između 2 i 40.

Hiperparametri - GOD 2022_2023 {data-navmenu="Forest 1"}
=======================================================================

## Column 1

### Testirani hiperparametri - GOD 2022 / 2023

```{r}
RF_tuning_model1 %>%
  collect_metrics() %>%
  filter(.metric == "roc_auc", trees > 0) %>%
  pivot_longer(cols = mtry:min_n) %>%
  mutate(best_mod = mean == max(mean)) %>% 
  ggplot(aes(x = value, y = mean)) +
  #geom_line(alpha = 0.5, size = 1.5) +
  geom_point(aes(color = best_mod), size = 0.3,) +
  facet_wrap(~name, scales = "free_x") +
  scale_x_continuous() +
  labs(y = "roc auc", x = "", color = "Best Model")
```

## Column 2

### 200 najboljih modela za roc_auc metriku

```{r}
print(RF_tuning_model1 %>% show_best(metric = 'roc_auc', n = 200), n = 200)
```

### 200 najboljih modela za mcc metriku

```{r}
print(RF_tuning_model1 %>% show_best(metric = 'mcc', n = 200), n = 200)
```

Efikasnost - GOD 2022_2023 {data-navmenu="Forest 1"}
=======================================================================

## Column 1

###  Metrike na testnom i trening skupu {data-height=200}

```{r}
tab1 <- RF_fit_model1 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model1 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
RF_fit_model1 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                       high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
RF_fit_model1 %>% collect_predictions() %>% roc_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

### Gain curve

```{r}
RF_fit_model1 %>% collect_predictions() %>% gain_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

Važnost prediktora - GOD 2022_2023 {data-navmenu="Forest 1"}
=======================================================================

## Columnn 1

### Gini

```{r}
RF_fit_model1 %>% extract_fit_parsnip() %>% vip()
```

### permutacija

```{r}
RF_fit_perm_model1 %>% extract_fit_parsnip() %>% vip()
```

## Column 2

### Boruta

```{r}
plot(RF_Boruta_model1, cex.axis=.7, las=2, xlab="",
     colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

### Boruta (history)

```{r}
plotImpHistory(RF_Boruta_model1, colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

Hiperparametri - GOD_2021_2022 {data-navmenu="Forest 1"}
=======================================================================
  
## Column 1
  
### Testirani hiperparametri - GOD 2022 / 2023
  
```{r}
RF_tuning_model3 %>%
  collect_metrics() %>%
  filter(.metric == "roc_auc", trees > 0) %>%
  pivot_longer(cols = mtry:min_n) %>%
  mutate(best_mod = mean == max(mean)) %>% 
  ggplot(aes(x = value, y = mean)) +
  #geom_line(alpha = 0.5, size = 1.5) +
  geom_point(aes(color = best_mod), size = 0.3,) +
  facet_wrap(~name, scales = "free_x") +
  scale_x_continuous() +
  labs(y = "roc auc", x = "", color = "Best Model")
```

## Column 2

### 200 najboljih modela za roc_auc metriku

```{r}
print(RF_tuning_model3 %>% show_best(metric = 'roc_auc', n = 200), n = 200)
```

### 200 najboljih modela za mcc metriku

```{r}
print(RF_tuning_model3 %>% show_best(metric = 'mcc', n = 200), n = 200)
```

Efikasnost - GOD_2021_2022 {data-navmenu="Forest 1"}
=======================================================================
  
## Column 1
  
###  Metrike na testnom i trening skupu {data-height=200}
  
```{r}
tab1 <- RF_fit_model3 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model3 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
RF_fit_model3 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
RF_fit_model3 %>% collect_predictions() %>% roc_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

### Gain curve

```{r}
RF_fit_model3 %>% collect_predictions() %>% gain_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

Važnost prediktora - GOD_2021_2022 {data-navmenu="Forest 1"}
=======================================================================
  
## Columnn 1
  
### Gini
  
```{r}
RF_fit_model3 %>% extract_fit_parsnip() %>% vip()
```

### permutacija

```{r}
RF_fit_perm_model3 %>% extract_fit_parsnip() %>% vip()
```

## Column 2

### Boruta

```{r}
plot(RF_Boruta_model3, cex.axis=.7, las=2, xlab="",
     colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

### Boruta (history)

```{r}
plotImpHistory(RF_Boruta_model3, colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

Usporedba modela {data-navmenu="Forest 1"}
=======================================================================
  
## Column 1
  
### Metrike: Model_2021 na podacima iz GOD_2021 {data-height=200}
  
```{r}
tab1 <- RF_fit_model3 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model3 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix: Model_2021 na testnim podacima iz GOD_2021

```{r}
RF_fit_model3 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### Metrike: Model_2021 na podacima iz GOD_2022 {data-height=200}
  
```{r}
rf_metrike(predikcije_svi, truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
```

### Confusion matrix: Model_2021 na podacima iz GOD_2022

```{r}
predikcije_svi %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

Opis modela {data-navmenu="Forest 2"}
=======================================================================

### Opis modela - redovni studenti koji su pisali esej

**Prediktori**

- KVIZ - suma bodova na kvizovima
- DZ - suma bodova na domaćim zadaćama
- KOL1 - broj bodova na prvom kolokviju 
- KOL2 - broj bodova na drugom kolokviju 
- KOL3 - broj bodova na trećem kolokviju 

**Response** - Klasifikacija studenata na temelju broja bodova eseju.

- **1** - ako je na eseju ukupni broj bodova unutar intervala [0, 2.5]
- **2** - ako je na eseju ukupni broj bodova unutar intervala (2.5, 5]
- **3** - ako je na eseju ukupni broj bodova unutar intervala (5, 7.5]
- **4** - ako je na eseju ukupni broj bodova unutar intervala (7.5, 10]

**Hiperparametri** - za odabir optimalne kombinacije hiperparametara napravljen je 
cross-validation s 10 *kutija* pri čemu je na slučajni način isprobano 1000 kombinacija 
hiperparametara *mtry*, *min_n* i *trees*. Najbolji model je odabran s obzirom na *roc_auc*
metriku.

- *mtry* - uzimane su vrijednosti iz skupa {2, 3, 4}
- *trees* - uzimani su prirodni brojevi između 400 i 1500
- *min_n* - uzimani su prirodni brojevi između 2 i 40.

Hiperparametri - GOD 2022_2023 {data-navmenu="Forest 2"}
=======================================================================

## Column 1

### Testirani hiperparametri - GOD 2022 / 2023

```{r}
RF_tuning_model2 %>%
  collect_metrics() %>%
  filter(.metric == "roc_auc", trees > 0) %>%
  pivot_longer(cols = mtry:min_n) %>%
  mutate(best_mod = mean == max(mean)) %>% 
  ggplot(aes(x = value, y = mean)) +
  #geom_line(alpha = 0.5, size = 1.5) +
  geom_point(aes(color = best_mod), size = 0.3,) +
  facet_wrap(~name, scales = "free_x") +
  scale_x_continuous() +
  labs(y = "roc auc", x = "", color = "Best Model")
```

## Column 2

### 200 najboljih modela za roc_auc metriku

```{r}
print(RF_tuning_model2 %>% show_best(metric = 'roc_auc', n = 200), n = 200)
```

### 200 najboljih modela za mcc metriku

```{r}
print(RF_tuning_model2 %>% show_best(metric = 'mcc', n = 200), n = 200)
```

Efikasnost - GOD 2022_2023 {data-navmenu="Forest 2"}
=======================================================================

## Column 1

###  Metrike na testnom i trening skupu {data-height=200}

```{r}
tab1 <- RF_fit_model2 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model2 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
RF_fit_model2 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                       high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
RF_fit_model2 %>% collect_predictions() %>% roc_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

### Gain curve

```{r}
RF_fit_model2 %>% collect_predictions() %>% gain_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

Važnost prediktora - GOD 2022_2023 {data-navmenu="Forest 2"}
=======================================================================

## Columnn 1

### Gini

```{r}
RF_fit_model2 %>% extract_fit_parsnip() %>% vip()
```

### permutacija

```{r}
RF_fit_perm_model2 %>% extract_fit_parsnip() %>% vip()
```

## Column 2

### Boruta

```{r}
plot(RF_Boruta_model2, cex.axis=.7, las=2, xlab="",
     colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

### Boruta (history)

```{r}
plotImpHistory(RF_Boruta_model2, colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

Hiperparametri - GOD_2021_2022 {data-navmenu="Forest 2"}
=======================================================================
  
## Column 1
  
### Testirani hiperparametri - GOD 2022 / 2023
  
```{r}
RF_tuning_model4 %>%
  collect_metrics() %>%
  filter(.metric == "roc_auc", trees > 0) %>%
  pivot_longer(cols = mtry:min_n) %>%
  mutate(best_mod = mean == max(mean)) %>% 
  ggplot(aes(x = value, y = mean)) +
  #geom_line(alpha = 0.5, size = 1.5) +
  geom_point(aes(color = best_mod), size = 0.3,) +
  facet_wrap(~name, scales = "free_x") +
  scale_x_continuous() +
  labs(y = "roc auc", x = "", color = "Best Model")
```

## Column 2

### 200 najboljih modela za roc_auc metriku

```{r}
print(RF_tuning_model4 %>% show_best(metric = 'roc_auc', n = 200), n = 200)
```

### 200 najboljih modela za mcc metriku

```{r}
print(RF_tuning_model4 %>% show_best(metric = 'mcc', n = 200), n = 200)
```

Efikasnost - GOD_2021_2022 {data-navmenu="Forest 2"}
=======================================================================
  
## Column 1
  
###  Metrike na testnom i trening skupu {data-height=200}
  
```{r}
tab1 <- RF_fit_model4 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model4 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
RF_fit_model4 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
RF_fit_model4 %>% collect_predictions() %>% roc_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

### Gain curve

```{r}
RF_fit_model4 %>% collect_predictions() %>% gain_curve(ESEJ, .pred_1:.pred_4) %>% autoplot()
```

Važnost prediktora - GOD_2021_2022 {data-navmenu="Forest 2"}
=======================================================================
  
## Columnn 1
  
### Gini
  
```{r}
RF_fit_model4 %>% extract_fit_parsnip() %>% vip()
```

### permutacija

```{r}
RF_fit_perm_model4 %>% extract_fit_parsnip() %>% vip()
```

## Column 2

### Boruta

```{r}
plot(RF_Boruta_model4, cex.axis=.7, las=2, xlab="",
     colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

### Boruta (history)

```{r}
plotImpHistory(RF_Boruta_model4, colCode = c("green", "orange", "#f6546a", "#2acaea"))
```

Usporedba modela {data-navmenu="Forest 2"}
=======================================================================
  
## Column 1
  
### Metrike: Model_2021 na podacima iz GOD_2021 {data-height=200}
  
```{r}
tab1 <- RF_fit_model4 %>% collect_predictions() %>% 
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab2 <- RF_work_model4 %>%
  rf_metrike(truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix: Model_2021 na testnim podacima iz GOD_2021

```{r}
RF_fit_model4 %>% collect_predictions() %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### Metrike: Model_2021 na podacima iz GOD_2022 {data-height=200}
  
```{r}
rf_metrike(predikcije, truth = ESEJ, estimate = .pred_class, .pred_1:.pred_4)
```

### Confusion matrix: Model_2021 na podacima iz GOD_2022

```{r}
predikcije %>%
  conf_mat(truth = ESEJ, estimate = .pred_class) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

Učenje - GOD 2022_2023 {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1 {.tabset .tabset-fade}

### struktura 1

```{r warning=FALSE}
graphviz.plot(learn1_bayes1)
```

### struktura 2

```{r warning=FALSE}
graphviz.plot(learn2_bayes1)
```

### struktura 3

```{r warning=FALSE}
graphviz.plot(learn3_bayes1)
```

### struktura 4

```{r warning=FALSE}
graphviz.plot(dag3_bayes1)
```

## Column 2

### Info - svi redovni studenti (GOD 2022 / 2023)

#### Opisi varijabli

* KOL1 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na prvom kolokviju
* KOL2 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na drugom kolokviju
* KOL3 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na trećem kolokviju
* KVIZ1 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima prije prvog kolokvija
* KVIZ2 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima između prvog i drugog kolokvija
* KVIZ3 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima nakon drugog kolokvija
* ESEJ - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na eseju

#### Opisi struktura

* **struktura 1** - učenje pomoću *hc* algoritma na praznom digrafu
* **struktura 2** - učenje pomoću *hc* algoritma na praznom digrafu uz zabranjene lukove
(KOL1, KVIZ1), (KOL2, KVIZ1), (KOL3, KVIZ1), (ESEJ, KVIZ1), (KOL2, KVIZ2), (KOL3, KVIZ2),
(KVIZ3, KVIZ2), (ESEJ, KVIZ2)
* **struktura 3** - učenje pomoću *gs* algoritma na praznom digrafu, neki bridovi nemaju orijentaciju
pa moramo sami odlučiti koju ćemo uzeti
* **struktura 4** - odabrane orijentacije za bridove iz **strukture 3**

### BIC score

#### struktura 1

```{r warning=FALSE}
score(learn1_bayes1, data = bayes1_klase, type = "bic")
```

#### struktura 2

```{r warning=FALSE}
score(learn2_bayes1, data = bayes1_klase, type = "bic")
```

#### struktura 4

```{r warning=FALSE}
score(dag3_bayes1, data = bayes1_klase, type = "bic")
```

Distribucije - struktura 1 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1 {.tabset .tabset-fade}

### KOL1

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KOL1, main = "KOL1")
```

### KOL2 | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KOL2, main = "KOL2 | KOL1")
```

### KOL3 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KOL3, main = "KOL3 | KOL2")
```

### KVIZ1 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KVIZ1, main = "KVIZ1 | KOL2")
```

### KVIZ2 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KVIZ2, main = "KVIZ2 | KOL2")
```

### KVIZ3 | ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$KVIZ3, main = "KVIZ3 | ESEJ")
```

### ESEJ | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes1$ESEJ, main = "ESEJ | KOL2")
```

## Column 2 {.tabset .tabset-fade}

### struktura 1

```{r warning=FALSE}
graphviz.plot(learn1_bayes1)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn1_bayes1, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Distribucije - struktura 2 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1 {.tabset .tabset-fade}

### KOL1 | KVIZ1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KOL1, main = "KOL1 | KVIZ1")
```

### KOL2 | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KOL2, main = "KOL2 | KOL1")
```

### KOL3 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KOL3, main = "KOL3 | KOL2")
```

### KVIZ1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KVIZ1, main = "KVIZ1")
```

### KVIZ2 | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KVIZ2, main = "KVIZ2 | KOL1")
```

### KVIZ3 | ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$KVIZ3, main = "KVIZ3 | ESEJ")
```

### ESEJ | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes1$ESEJ, main = "ESEJ | KOL2")
```

## Column 2 {.tabset .tabset-fade}

### struktura 2

```{r warning=FALSE}
graphviz.plot(learn2_bayes1)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn2_bayes1, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Distribucije - struktura 4 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1 {.tabset .tabset-fade}

### KOL1

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes1$KOL1, main = "KOL1")
```

### KOL2 | KOL1,KVIZ1

```{r warning=FALSE, fig.height=8, fig.width = 8}
bn.fit.barchart(bn3_bayes1$KOL2, main = "KOL2 | KOL1,KVIZ1")
```

### KOL3 | KOL2,KVIZ2,KVIZ3

```{r warning=FALSE, fig.height=10}
bn.fit.barchart(bn3_bayes1$KOL3, main = "KOL3 | KOL2,KVIZ2,KVIZ3")
```

### KVIZ1

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes1$KVIZ1, main = "KVIZ1")
```

### KVIZ2

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes1$KVIZ2, main = "KVIZ2")
```

### KVIZ3 | ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes1$KVIZ3, main = "KVIZ3 | ESEJ")
```

### ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes1$ESEJ, main = "ESEJ")
```

## Column 2 {.tabset .tabset-fade}

### struktura 4

```{r warning=FALSE}
graphviz.plot(dag3_bayes1)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn3_bayes1, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Postavljanje upita - struktura 2 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1

### P(ESEJ | KOL1) {data-height=100}

```{r warning=FALSE}
junc3 <- compile(as.grain(bn2_bayes1))
querygrain(junc3, nodes = c("ESEJ", "KOL1"), type = "conditional")
```

### P(ESEJ | KVIZ1, KVIZ2) {data-height=400}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KVIZ1", "KVIZ2"), type = "conditional")
```

## Column 2

### P(ESEJ | KOL2) {data-height=100}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KOL2"), type = "conditional")
```

### P(ESEJ | KOL1, KOL2) {data-height=400}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KOL1", "KOL2"), type = "conditional")
```


Predikcije eseja - struktura 1 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1

###  Metrike na testnom i trening skupu {data-height=200}

```{r}
tab1 <- rf_metrike(mat1_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat1_tr_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat1_bayes1, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                       high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat1_bayes1 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat1_bayes1 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```

Predikcije eseja - struktura 2 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1

###  Metrike na testnom i trening skupu {data-height=200}

```{r}
tab1 <- rf_metrike(mat2_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat2_tr_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat2_bayes1, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                       high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat2_bayes1 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat2_bayes1 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```

Predikcije eseja - struktura 4 (GOD 2022_2023) {data-navmenu="Bayes NET 1"}
=======================================================================

## Column 1

###  Metrike na testnom i trening skupu {data-height=200}

```{r}
tab1 <- rf_metrike(mat3_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat3_tr_bayes1, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat3_bayes1, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                       high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat3_bayes1 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat3_bayes1 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```

Učenje - GOD 2022_2023 {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1 {.tabset .tabset-fade}
  
### struktura 1
  
```{r warning=FALSE}
graphviz.plot(learn1_bayes2)
```

### struktura 2

```{r warning=FALSE}
graphviz.plot(learn2_bayes2)
```

### struktura 3

```{r warning=FALSE}
graphviz.plot(learn3_bayes2)
```

### struktura 4

```{r warning=FALSE}
graphviz.plot(dag3_bayes2)
```

## Column 2

### Info - redovni studenti koji su pisali esej (GOD 2022 / 2023)

#### Opisi varijabli

* KOL1 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na prvom kolokviju
* KOL2 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na drugom kolokviju
* KOL3 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na trećem kolokviju
* KVIZ1 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima prije prvog kolokvija
* KVIZ2 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima između prvog i drugog kolokvija
* KVIZ3 - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na kvizovima nakon drugog kolokvija
* ESEJ - faktorska varijabla s 4 klase napravljene prema četvrtinama 
ukupnih bodova na eseju

#### Opisi struktura

* **struktura 1** - učenje pomoću *hc* algoritma na praznom digrafu
* **struktura 2** - učenje pomoću *hc* algoritma na praznom digrafu uz zabranjene lukove
(KOL1, KVIZ1), (KOL2, KVIZ1), (KOL3, KVIZ1), (ESEJ, KVIZ1), (KOL2, KVIZ2), (KOL3, KVIZ2),
(KVIZ3, KVIZ2), (ESEJ, KVIZ2)
* **struktura 3** - učenje pomoću *gs* algoritma na praznom digrafu, neki bridovi nemaju orijentaciju
pa moramo sami odlučiti koju ćemo uzeti
* **struktura 4** - odabrane orijentacije za bridove iz **strukture 3**
  
### BIC score
  
#### struktura 1
  
```{r warning=FALSE}
score(learn1_bayes2, data = bayes2_klase, type = "bic")
```

#### struktura 2

```{r warning=FALSE}
score(learn2_bayes2, data = bayes2_klase, type = "bic")
```

#### struktura 4

```{r warning=FALSE}
score(dag3_bayes2, data = bayes2_klase, type = "bic")
```

Distribucije - struktura 1 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1 {.tabset .tabset-fade}
  
### KOL1
  
```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KOL1, main = "KOL1")
```

### KOL2 | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KOL2, main = "KOL2 | KOL1")
```

### KOL3 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KOL3, main = "KOL3 | KOL2")
```

### KVIZ1 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KVIZ1, main = "KVIZ1 | KOL2")
```

### KVIZ2 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KVIZ2, main = "KVIZ2 | KOL2")
```

### KVIZ3

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$KVIZ3, main = "KVIZ3")
```

### ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn1_bayes2$ESEJ, main = "ESEJ")
```

## Column 2 {.tabset .tabset-fade}

### struktura 1

```{r warning=FALSE}
graphviz.plot(learn1_bayes2)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn1_bayes2, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Distribucije - struktura 2 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1 {.tabset .tabset-fade}
  
### KOL1
  
```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KOL1, main = "KOL1")
```

### KOL2 | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KOL2, main = "KOL2 | KOL1")
```

### KOL3 | KOL2

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KOL3, main = "KOL3 | KOL2")
```

### KVIZ1

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KVIZ1, main = "KVIZ1")
```

### KVIZ2

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KVIZ2, main = "KVIZ2")
```

### KVIZ3

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$KVIZ3, main = "KVIZ3")
```

### ESEJ

```{r warning=FALSE}
bn.fit.barchart(bn2_bayes2$ESEJ, main = "ESEJ")
```

## Column 2 {.tabset .tabset-fade}

### struktura 2

```{r warning=FALSE}
graphviz.plot(learn2_bayes2)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn2_bayes2, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Distribucije - struktura 4 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1 {.tabset .tabset-fade}
  
### KOL1
  
```{r warning=FALSE}
bn.fit.barchart(bn3_bayes2$KOL1, main = "KOL1")
```

### KOL2 | KOL1,KVIZ1

```{r warning=FALSE, fig.height=8, fig.width = 8}
bn.fit.barchart(bn3_bayes2$KOL2, main = "KOL2 | KOL1,KVIZ1")
```

### KOL3 | KOL2,KVIZ2

```{r warning=FALSE, fig.height=8, fig.width = 8}
bn.fit.barchart(bn3_bayes2$KOL3, main = "KOL3 | KOL2,KVIZ2")
```

### KVIZ1

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes2$KVIZ1, main = "KVIZ1")
```

### KVIZ2

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes2$KVIZ2, main = "KVIZ2")
```

### KVIZ3

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes2$KVIZ3, main = "KVIZ3")
```

### ESEJ | KOL1

```{r warning=FALSE}
bn.fit.barchart(bn3_bayes2$ESEJ, main = "ESEJ | KOL1")
```

## Column 2 {.tabset .tabset-fade}

### struktura 4

```{r warning=FALSE}
graphviz.plot(dag3_bayes2)
```

### marginalne distribucije

```{r warning=FALSE}
graphviz.chart(bn3_bayes2, type = "barprob", bg = "azure", bar.col = "darkblue")
```

Postavljanje upita - struktura 4 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1
  
### P(ESEJ | KOL1) {data-height=100}
  
```{r warning=FALSE}
junc3 <- compile(as.grain(bn3_bayes2))
querygrain(junc3, nodes = c("ESEJ", "KOL1"), type = "conditional")
```

### P(ESEJ | KVIZ1, KVIZ2) {data-height=400}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KVIZ1", "KVIZ2"), type = "conditional")
```

## Column 2

### P(ESEJ | KOL2) {data-height=100}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KOL2"), type = "conditional")
```

### P(ESEJ | KOL1, KOL2) {data-height=400}

```{r warning=FALSE}
querygrain(junc3, nodes = c("ESEJ", "KOL1", "KOL2"), type = "conditional")
```


Predikcije eseja - struktura 1 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1
  
###  Metrike na testnom i trening skupu {data-height=200}
  
```{r}
tab1 <- rf_metrike(mat1_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat1_tr_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat1_bayes2, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat1_bayes2 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat1_bayes2 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```

Predikcije eseja - struktura 2 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1
  
###  Metrike na testnom i trening skupu {data-height=200}
  
```{r}
tab1 <- rf_metrike(mat2_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat2_tr_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat2_bayes2, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat2_bayes2 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat2_bayes2 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```

Predikcije eseja - struktura 4 (GOD 2022_2023) {data-navmenu="Bayes NET 2"}
=======================================================================
  
## Column 1
  
###  Metrike na testnom i trening skupu {data-height=200}
  
```{r}
tab1 <- rf_metrike(mat3_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab2 <- rf_metrike(mat3_tr_bayes2, truth = truth, estimate = pred, `1`:`4`)
tab1 %>% inner_join(tab2, by = ".metric") %>%
  select(.metric, .estimator = .estimator.x, trening = .estimate.y, test = .estimate.x)
```

### Confusion matrix

```{r}
conf_mat(mat3_bayes2, truth = truth, estimate = pred) %>% autoplot("heatmap") +
  scale_fill_gradient(low = "#87DEE7",
                      high = "#FFFFCC")
```

## Column 2

### ROC curve

```{r}
mat3_bayes2 %>% roc_curve(truth, `1`:`4`) %>% autoplot()
```

### Gain curve

```{r}
mat3_bayes2 %>% gain_curve(truth, `1`:`4`) %>% autoplot()
```