Perbandingan Model

Filter Batch Dataset

๐Ÿฅง Distribusi Data โ€” Data Mentah MBG

5616
Total
1026
Positif
3167
Negatif
1423
Netral

๐Ÿ“Š Grafik Perbandingan Metrik Evaluasi

๐ŸŒฒ Random Forest (Training Terakhir)

Akurasi71.14%
Precision72%
Recall71.14%
F1-Score71.49%
Data Train / Test7968 / 1171
Waktu Training1755.97 detik

๐Ÿ“ KNN (Training Terakhir)

Akurasi56.79%
Precision66.55%
Recall56.79%
F1-Score58.46%
Data Train / Test7968 / 1171
Waktu Training84.849 detik

Confusion Matrix โ€” Random Forest

Aktual \ Prediksinegatifnetralpositif
negatif5189650
netral7317844
positif3342137

Confusion Matrix โ€” KNN

Aktual \ Prediksinegatifnetralpositif
negatif348200116
netral3618475
positif2257133

Classification Report โ€” Random Forest

LabelPrecisionRecallF1-ScoreSupport
negatif83.01%
78.01%
80.43%
664
netral56.33%
60.34%
58.27%
295
positif59.31%
64.62%
61.85%
212

* Support = jumlah data uji per kelas  ยท  F1-Score = harmonic mean precision & recall

Classification Report โ€” KNN

LabelPrecisionRecallF1-ScoreSupport
negatif85.71%
52.41%
65.05%
664
netral41.72%
62.37%
50%
295
positif41.05%
62.74%
49.63%
212

* Support = jumlah data uji per kelas  ยท  F1-Score = harmonic mean precision & recall

Kesimpulan Perbandingan

Berdasarkan hasil training terakhir pada dataset batch "Data Mentah MBG", algoritma Random Forest menghasilkan akurasi lebih tinggi yaitu 71.14%, unggul 14.35 poin persen dibandingkan algoritma pembanding.

Seluruh Riwayat Training

WaktuBatchAlgoritmaAkurasiPrecisionRecallF1
15/08/2026 21:39 Data Mentah MBG ๐Ÿ“ KNN 56.79% 66.55% 56.79% 58.46%
15/08/2026 21:34 Data Mentah MBG ๐ŸŒฒ RF 71.14% 72% 71.14% 71.49%
15/08/2026 21:02 Data Mentah MBG ๐ŸŒฒ RF 70.62% 72.21% 70.62% 71.14%
15/08/2026 20:55 Data Mentah MBG ๐ŸŒฒ RF 56.62% 71.59% 56.62% 57.7%
15/08/2026 20:42 Data Mentah MBG ๐ŸŒฒ RF 54.48% 71.17% 54.48% 55.77%
15/08/2026 20:20 Data Mentah MBG ๐Ÿ“ KNN 55.59% 64.16% 55.59% 57.36%
15/08/2026 20:17 Data Mentah MBG ๐ŸŒฒ RF 59.95% 72.94% 59.95% 61.46%