Section 1/161 menit
1. Apa Itu Core ML?
1. Apa Itu Core ML?
Core ML adalah framework Apple untuk menjalankan model machine learning secara on-device — langsung di iPhone, iPad, Mac, atau Apple Watch tanpa memerlukan koneksi ke server. Model dieksekusi di hardware Apple (CPU, GPU, dan Apple Neural Engine) dengan optimasi mendalam untuk ekosistem Apple Silicon.
Core ML pertama kali diperkenalkan di iOS 11 (2017) dan terus berkembang:
| Versi | Rilis | Fitur Baru |
|---|---|---|
| Core ML 1 | iOS 11 | Inferensi dasar, Vision integration |
| Core ML 2 | iOS 12 | Batch prediction, custom layers |
| Core ML 3 | iOS 13 | On-device training, NLP integration |
| Core ML 4 | iOS 14 | Model encryption, async prediction |
| Core ML 5 | iOS 15 | Model deployment (CloudKit), Compute Plan |
| Core ML 6+ | iOS 16-18 | Stateful models, streaming prediction |
Posisi Core ML dalam Ekosistem Apple
swift
┌─────────────────────────────────────────────┐
│ Aplikasi Kamu │
├─────────────────────────────────────────────┤
│ Vision │ NaturalLanguage │ Sound │ ← High-Level Frameworks
├─────────────────────────────────────────────┤
│ Core ML │ ← ML Runtime Layer
├──────────────┬──────────────┬───────────────┤
│ CPU │ GPU │ Neural Engine │ ← Hardware
└──────────────┴──────────────┴───────────────┘
Kamu jarang berinteraksi langsung dengan Core ML untuk tugas umum — Vision, NaturalLanguage, dan Sound Analysis menggunakan Core ML di bawahnya. Tapi untuk model custom, Core ML API diakses langsung.