官术网_书友最值得收藏!

First Steps in Supervised Learning

This is the moment you've been waiting for, isn't it?

We have covered all the bases-we have a functioning Python environment, we have OpenCV installed, and we know how to handle data in Python. Now it's time to build our first machine learning system! And what better way to start off than to focus on one of the most common and successful types of machine learning: supervised learning?

From the previous chapter, we already know that supervised learning is all about learning regularities in some training data by using the labels that come with it so that we can predict the labels of some new, never-seen-before test data. In this chapter, we want to dig a little deeper, and learn how to turn our theoretical knowledge into something practical.

Specifically, we want to address the following questions:

  • What's the difference between classification and regression, and when do I use which?
  • What is a k-nearest neighbor (k-NN) classifier, and how do I implement one in OpenCV?
  • How do I use logistic regression for classification, and why is it named so confusingly?
  • How do I build a linear regression model in OpenCV, and how does it differ from Lasso and ridge regression?

Let's jump right in!

主站蜘蛛池模板: 新郑市| 洛川县| 阿勒泰市| 京山县| 桂平市| 广水市| 金华市| 建宁县| 修武县| 鹤岗市| 鄂托克前旗| 北海市| 富民县| 吐鲁番市| 苗栗县| 辉南县| 琼结县| 丰原市| 怀来县| 金湖县| 合阳县| 长乐市| 新乐市| 疏附县| 中牟县| 察雅县| 玉屏| 颍上县| 宁明县| 惠安县| 白玉县| 沿河| 壶关县| 临江市| 凉城县| 乌兰察布市| 郧西县| 临清市| 武鸣县| 竹溪县| 长汀县|