- Machine Learning with Swift
- Alexander Sosnovshchenko
- 132字
- 2021-06-24 18:55:05
Balanced dataset
The application allows you to record samples of different motion types. As you train the model, you may notice one interesting effect: to get accurate predictions, you need not only enough samples, but you also need the proportion of different classes in your dataset to be roughly equal. Think about it: if you have 100 samples of two classes (walk and run), and 99 of them belong to one class (walk), the classifier that delivers 99% accuracy may look like this:
func predict(x: [Double]) -> MotionType { return .walk }
But this is not what we want, obviously.
This observation lead us to the notion of the balanced data set; for most machine learning algorithms, you want the data set in which samples of different classes are represented equally frequently.
推薦閱讀
- 網絡服務器配置與管理(第3版)
- INSTANT Wijmo Widgets How-to
- 施耐德SoMachine控制器應用及編程指南
- 筆記本電腦維修不是事兒(第2版)
- 計算機組裝與維護(第3版)
- Machine Learning with Go Quick Start Guide
- Blender Quick Start Guide
- LPC1100系列處理器原理及應用
- Wireframing Essentials
- The Artificial Intelligence Infrastructure Workshop
- 基于網絡化教學的項目化單片機應用技術
- 嵌入式系統設計大學教程(第2版)
- 計算機應用基礎案例教程(Windows 7+Office 2010)
- 筆記本電腦現場維修實錄
- 快·易·通:2天學會電腦組裝·系統安裝·日常維護與故障排除