{{-- @extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

Seluruh Data

{{ $dataAll }}

Total Data Training

{{ $dataAll - $data2->where('type', 'uji')->count() }}

Total Data Testing

{{-- --}} {{--

{{ $data2->where('type', 'uji')->count()}}

Akurasi Model

{{ $res['res']['accuracy'] }}%

--}} {{--

TestIng Tidak Lulus

{{ $totalTesting }}

--}} {{--

Testing Lulus

{{ $testingLolos }}

--}} {{--

Matrix Evaluasi

Mini Confusion Matrix

@endsection --}} {{-- @push('after-script') @endpush --}} @extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

Dashboard Monitoring

Ringkasan data pendaftar dan performa model Naive Bayes.

Total Pendaftar

{{ $dataAll }}

Data Training

{{ $totalTraining }}

Data Testing

{{ $totalTesting }}

Akurasi Model

{{ $res['accuracy'] }}%

Metrik Evaluasi Model

Performa
Akurasi
{{ $res['accuracy'] }}%
Presisi
{{ $res['precision'] }}%
Recall
{{ $res['recall'] }}%
F1-Score
{{ $res['f1_score'] }}%

Detail Klasifikasi (CM)

Distribusi
Benar Lolos (TP) {{ $res['tp'] }}
Benar Gagal (TN) {{ $res['tn'] }}
Salah Lolos (FP) {{ $res['fp'] }}
Salah Gagal (FN) {{ $res['fn'] }}

Pendaftar Terbaru

Lihat Semua
@forelse($recentUsers as $user) {{-- PERBAIKAN 1: Ganti 'umur_asli' jadi 'age' --}} {{-- PERBAIKAN 2: Ganti 'family' jadi 'family_cat' --}} @empty @endforelse
Nama Lengkap Umur Kondisi Keluarga IQ Kepribadian Hasil Prediksi
{{ ucwords(strtolower($user['nama'])) }}{{ $user['age'] }} Tahun{{ ucwords(str_replace('-', ' ', $user['family_cat'])) }} ({{ $user['nilai_iq'] }}) {{ ucwords($user['iq_cat']) }} ({{ $user['nilai_personal'] }}) {{ ucwords($user['personal_cat']) }} @if(strtolower($user['hasil_klasifikasi']) == 'lolos') Lolos @else Tidak Lolos @endif
Belum ada data testing.
@endsection @push('after-script') @endpush