- Machine Learning with Swift
- Alexander Sosnovshchenko
- 136字
- 2021-06-24 18:55:02
K-Nearest Neighbors Classifier
This chapter is devoted to an important class of machine learning algorithms, known as instance-based models. The name comes from the fact that they are built around the notion of similarity between instances (distance) and the geometrical intuition behind it. As a practical application of our newly learned skills, we will build an app that recognizes types of user movements based on the data from motion sensors and learns completely on device (no Python this time).
The algorithms that we are discussing and implementing in this chapter are k-nearest neighbors (KNN) and dynamic time warping (DTW).
In this chapter, we will cover the following topics:
- Choosing a distance metric—Euclidean, edit distance, taxicab, and DTW
- Building a KNN multiclass classifier
- Geometrical intuition behind machine learning models
- Reasoning in high-dimensional spaces
- Choosing hyperparameters
推薦閱讀
- 零點(diǎn)起飛學(xué)Xilinx FPG
- Intel FPGA/CPLD設(shè)計(jì)(基礎(chǔ)篇)
- 顯卡維修知識精解
- Android NDK Game Development Cookbook
- 精選單片機(jī)設(shè)計(jì)與制作30例(第2版)
- Intel FPGA/CPLD設(shè)計(jì)(高級篇)
- 電腦常見故障現(xiàn)場處理
- 平衡掌控者:游戲數(shù)值經(jīng)濟(jì)設(shè)計(jì)
- Blender Quick Start Guide
- RISC-V處理器與片上系統(tǒng)設(shè)計(jì):基于FPGA與云平臺的實(shí)驗(yàn)教程
- Java Deep Learning Cookbook
- Python Machine Learning Blueprints
- The Artificial Intelligence Infrastructure Workshop
- The Deep Learning with PyTorch Workshop
- Raspberry Pi Home Automation with Arduino