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

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!

主站蜘蛛池模板: 天等县| 峡江县| 望奎县| 灌云县| 清徐县| 石景山区| 司法| 罗田县| 安吉县| 青海省| 玛多县| 亳州市| 彭水| 绥江县| 通州市| 柳州市| 漾濞| 萝北县| 龙井市| 陕西省| 始兴县| 宽城| 青冈县| 汝南县| 丹巴县| 松桃| 巨鹿县| 无为县| 普格县| 和平县| 汝南县| 惠来县| 新化县| 曲沃县| 永丰县| 闸北区| 交城县| 鹤庆县| 博罗县| 禹城市| 龙川县|