- Machine Learning for OpenCV
- Michael Beyeler
- 77字
- 2021-07-02 19:47:25
Making it a binary classification problem
For the sake of simplicity, we want to focus on a binary classification problem for now, where we only have two classes. The easiest way to do this is to discard all data points belonging to a certain class, such as class label 2, by selecting all the rows that do not belong to class 2:
In [9]: idx = iris.target != 2
... data = iris.data[idx].astype(np.float32)
... target = iris.target[idx].astype(np.float32)
推薦閱讀
- Clojure Programming Cookbook
- JavaScript從入門到精通(微視頻精編版)
- Instant Testing with CasperJS
- Learning Java Functional Programming
- WildFly:New Features
- Mastering OpenCV Android Application Programming
- Getting Started with CreateJS
- Android 7編程入門經典:使用Android Studio 2(第4版)
- RTC程序設計:實時音視頻權威指南
- 大模型RAG實戰:RAG原理、應用與系統構建
- Scala編程實戰(原書第2版)
- Node.js:來一打 C++ 擴展
- Django 3.0入門與實踐
- Emgu CV Essentials
- Java Web應用開發項目教程