- Machine Learning with Swift
- Alexander Sosnovshchenko
- 157字
- 2021-06-24 18:55:07
Summary
In this chapter, we implemented a working machine learning solution for motion data classification and trained it end-to-end on a device. The simplest of the instance-based models is the nearest neighbors classifier. You can use it to classify any type of data, the only tricky thing is to choose a suitable distance metric. For feature vectors (points in n-dimensional space), many metrics have been invented, such as the Euclidean and Manhattan distances. For strings, editing distances are popular. For time series, we applied DTW.
The nearest neighbors method is a non-parametric model, which means that we can apply it without regard to statistical data distributions. Another advantage is that it is well suited for online learning and is easy to parallelize. Among the shortcomings is the curse of dimensionality and the algorithmic complexity of predictions (lazy learning).
In the next chapter, we're going to proceed with instance-based algorithms, this time focusing on the unsupervised clustering task.
- ATmega16單片機項目驅(qū)動教程
- INSTANT Wijmo Widgets How-to
- 深入淺出SSD:固態(tài)存儲核心技術(shù)、原理與實戰(zhàn)(第2版)
- 電腦維護365問
- Svelte 3 Up and Running
- 計算機組裝與維修技術(shù)
- 深入理解序列化與反序列化
- 電腦組裝與維護即時通
- 單片機原理及應(yīng)用:基于C51+Proteus仿真
- FPGA實驗實訓(xùn)教程
- Mastering Quantum Computing with IBM QX
- 計算機應(yīng)用基礎(chǔ)案例教程(Windows 7+Office 2010)
- 創(chuàng)客電子:Arduino和Raspberry Pi智能制作項目精選
- 主板維修實踐技術(shù)
- 嵌入式系統(tǒng)原理:基于Arm Cortex-M微控制器體系