@extends('layouts.app') @section('title', 'Report Hasil Training') @section('content')
Grafik ini menunjukkan distribusi jumlah data pada masing-masing kategori sentimen.
Tabel ini menampilkan 50 kata dengan skor TF-IDF tertinggi.
{{ ucwords(str_replace('_', ' ', $col)) }} | @endforeach
---|
{{ $val }} | @endforeach
Confusion Matrix memperlihatkan jumlah prediksi benar & salah untuk tiap kelas.
Actual ↓ / Predicted → | @foreach ($labels as $pred){{ ucfirst($pred) }} | @endforeach
---|---|
{{ ucfirst($labelNames[$i] ?? $i) }} | @foreach ($labels as $pred) @php $val = floatval($row[$pred]); $ratio = $maxVal > 0 ? $val / $maxVal : 0; // warna dasar untuk true positive hijau, else biru $baseColor = $labelNames[$i] === $pred ? [40, 167, 69] : [59, 130, 246]; // hitung rgba dengan opacity = ratio $bgColor = "rgba({$baseColor[0]},{$baseColor[1]},{$baseColor[2]},{$ratio})"; $textClass = $ratio > 0.5 ? 'text-white font-bold' : 'text-gray-800'; @endphp{{ $val > 0 ? $val : '0' }} | @endforeach
Metrik evaluasi setelah dilatih pada seluruh data.
{{ ucwords(str_replace('_', ' ', $col)) }} | @endforeach
---|
{{ is_numeric($val) ? number_format($val, 2) : $val }} | @endforeach