- 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.
推薦閱讀
- Intel FPGA/CPLD設計(基礎篇)
- Learning Cocos2d-x Game Development
- Learning AngularJS Animations
- 電腦組裝、維護、維修全能一本通(全彩版)
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- 單片機原理與技能訓練
- FreeSWITCH Cookbook
- Angular 6 by Example
- 微服務實戰
- UML精粹:標準對象建模語言簡明指南(第3版)
- The Applied Artificial Intelligence Workshop
- Advanced Machine Learning with R
- Hands-On One-shot Learning with Python
- Arduino案例實戰(卷Ⅳ)
- FPGA進階開發與實踐