- 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.
推薦閱讀
- 單片機原理及應用系統設計
- 計算機維修與維護技術速成
- Learning Game Physics with Bullet Physics and OpenGL
- 筆記本電腦維修不是事兒(第2版)
- Mastering Adobe Photoshop Elements
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- 筆記本電腦應用技巧
- Internet of Things Projects with ESP32
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- Hands-On Motion Graphics with Adobe After Effects CC
- Java Deep Learning Cookbook
- 電腦橫機使用與維修
- FPGA實戰訓練精粹
- 分布式存儲系統:核心技術、系統實現與Go項目實戰
- 創客電子:Arduino和Raspberry Pi智能制作項目精選