Perbandingan Model

Filter Batch Dataset

๐Ÿฅง Distribusi Data โ€” Data MBG

5827
Total
1055
Positif
3302
Negatif
1470
Netral

๐Ÿ“Š Grafik Perbandingan Metrik Evaluasi

๐ŸŒฒ Random Forest (Training Terakhir)

Akurasi73.78%
Precision74.52%
Recall73.78%
F1-Score74.05%
Data Train / Test7968 / 1171
Waktu Training1216.2 detik

๐Ÿ“ KNN (Training Terakhir)

Akurasi52.78%
Precision64.72%
Recall52.78%
F1-Score55.15%
Data Train / Test7968 / 1171
Waktu Training70.136 detik

Confusion Matrix โ€” Random Forest

Aktual \ Prediksipositifnegatifnetral
positif1503923
negatif4652791
netral4860187

Confusion Matrix โ€” KNN

Aktual \ Prediksipositifnegatifnetral
positif1481747
negatif139349176
netral14133121

Classification Report โ€” Random Forest

LabelPrecisionRecallF1-ScoreSupport
positif61.48%
70.75%
65.79%
212
negatif84.19%
79.37%
81.71%
664
netral62.13%
63.39%
62.75%
295

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

Classification Report โ€” KNN

LabelPrecisionRecallF1-ScoreSupport
positif34.58%
69.81%
46.25%
212
negatif87.47%
52.56%
65.66%
664
netral35.17%
41.02%
37.87%
295

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

Kesimpulan Perbandingan

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

Seluruh Riwayat Training

๐ŸŒฒRandom Forest
WaktuBatchAlgoritmaAkurasiPrecisionRecallF1
13/09/2026 21:35Data MBG๐ŸŒฒ RF73.78%74.52%73.78%74.05%
๐Ÿ“K-Nearest Neighbor (KNN)
WaktuBatchAlgoritmaAkurasiPrecisionRecallF1
13/09/2026 21:38Data MBG๐Ÿ“ KNN52.78%64.72%52.78%55.15%