Skip to content

Commit 42b7ed8

Browse files
author
mbeyeler
committed
fix typos
1 parent 3061bdb commit 42b7ed8

File tree

35 files changed

+1091
-3165
lines changed

35 files changed

+1091
-3165
lines changed

notebooks/02.00-Working-with-Data-in-OpenCV.ipynb

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {
6-
"deletable": true,
7-
"editable": true
8-
},
5+
"metadata": {},
96
"source": [
107
"<!--BOOK_INFORMATION-->\n",
118
"<a href=\"https://www.packtpub.com/big-data-and-business-intelligence/machine-learning-opencv\" target=\"_blank\"><img align=\"left\" src=\"data/cover.jpg\" style=\"width: 76px; height: 100px; background: white; padding: 1px; border: 1px solid black; margin-right:10px;\"></a>\n",
@@ -20,21 +17,15 @@
2017
},
2118
{
2219
"cell_type": "markdown",
23-
"metadata": {
24-
"deletable": true,
25-
"editable": true
26-
},
20+
"metadata": {},
2721
"source": [
2822
"<!--NAVIGATION-->\n",
2923
"< [A Taste of Machine Learning](01.00-A-Taste-of-Machine-Learning.ipynb) | [Contents](../README.md) | [Dealing with Data Using Python's NumPy Package](02.01-Dealing-with-Data-Using-Python-NumPy.ipynb) >"
3024
]
3125
},
3226
{
3327
"cell_type": "markdown",
34-
"metadata": {
35-
"deletable": true,
36-
"editable": true
37-
},
28+
"metadata": {},
3829
"source": [
3930
"# Working with Data in OpenCV\n",
4031
"\n",
@@ -77,7 +68,7 @@
7768
"- [Dealing with Data Using Python's NumPy Package](02.01-Dealing-with-Data-Using-Python-NumPy.ipynb)\n",
7869
"- [Loading External Datasets in Python](02.02-Loading-External-Datasets-in-Python.ipynb)\n",
7970
"- [Visualizing Data Using Matplotlib](02.03-Visualizing-Data-Using-Matplotlib.ipynb)\n",
80-
"- [Dealing with Data Using OpenCV's TrainData container](02.05-Dealing-with-Data-Using-the-OpenCV-TrainData-Container-in-C%2B%2B.ipynb)"
71+
"- [Dealing with Data Using OpenCV's TrainData container in C++](02.05-Dealing-with-Data-Using-the-OpenCV-TrainData-Container-in-C%2B%2B.ipynb)"
8172
]
8273
},
8374
{
@@ -162,10 +153,7 @@
162153
},
163154
{
164155
"cell_type": "markdown",
165-
"metadata": {
166-
"deletable": true,
167-
"editable": true
168-
},
156+
"metadata": {},
169157
"source": [
170158
"<!--NAVIGATION-->\n",
171159
"< [A Taste of Machine Learning](01.00-A-Taste-of-Machine-Learning.ipynb) | [Contents](../README.md) | [Dealing with Data Using Python's NumPy Package](02.01-Dealing-with-Data-Using-Python-NumPy.ipynb) >"
@@ -193,5 +181,5 @@
193181
}
194182
},
195183
"nbformat": 4,
196-
"nbformat_minor": 0
184+
"nbformat_minor": 1
197185
}

notebooks/02.03-Visualizing-Data-Using-Matplotlib.ipynb

Lines changed: 24 additions & 76 deletions
Large diffs are not rendered by default.

notebooks/02.04-Visualizing-Data-from-an-External-Dataset.ipynb

Lines changed: 19 additions & 61 deletions
Large diffs are not rendered by default.

notebooks/03.00-First-Steps-in-Supervised-Learning.ipynb

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {
6-
"deletable": true,
7-
"editable": true
8-
},
5+
"metadata": {},
96
"source": [
107
"<!--BOOK_INFORMATION-->\n",
118
"<a href=\"https://www.packtpub.com/big-data-and-business-intelligence/machine-learning-opencv\" target=\"_blank\"><img align=\"left\" src=\"data/cover.jpg\" style=\"width: 76px; height: 100px; background: white; padding: 1px; border: 1px solid black; margin-right:10px;\"></a>\n",
@@ -20,10 +17,7 @@
2017
},
2118
{
2219
"cell_type": "markdown",
23-
"metadata": {
24-
"deletable": true,
25-
"editable": true
26-
},
20+
"metadata": {},
2721
"source": [
2822
"<!--NAVIGATION-->\n",
2923
"< [Dealing with Data Using OpenCV's TrainData Container in C++](02.05-Dealing-with-Data-Using-the-OpenCV-TrainData-Container-in-C++.ipynb) | [Contents](../README.md) | [Measuring-Model-Performance-with-Scoring-Functions](03.01-Measuring-Model-Performance-with-Scoring-Functions.ipynb) >"
@@ -47,6 +41,27 @@
4741
"predict the labels of some new, never-seen-before test data. In this chapter, we want to dig a\n",
4842
"little deeper, and learn how to turn our theoretical knowledge into something practical.\n",
4943
"\n",
44+
"Along the way, we want to address the following questions:\n",
45+
"- What's the difference between classification and regression, and when do I use which?\n",
46+
"- What is a $k$-nearest neighbor ($k$-NN) classifier, and how do I implement one in OpenCV?\n",
47+
"- How do I use logistic regression for classification, and why is it named so confusingly?\n",
48+
"- How do I build a linear regression model in OpenCV, and how does it differ from Lasso and ridge regression?\n",
49+
"\n",
50+
"## Outline\n",
51+
"\n",
52+
"- [Measuring Model Performance with Scoring Functions](03.01-Measuring-Model-Performance-with-Scoring-Functions.ipynb)\n",
53+
"- [Understanding the k-NN Algorithm](03.02-Understanding-the-k-NN-Algorithm.ipynb)\n",
54+
"- [Using Regression Models to Predict Continuous Outcomes](03.03-Using-Regression-Models-to-Predict-Continuous-Outcomes.ipynb)\n",
55+
"- [Applying Lasso and Ridge Regression](03.04-Applying-Lasso-and-Ridge-Regression.ipynb)\n",
56+
"- [Classifying Iris Species Using Logistic Regression](03.05-Classifying-Iris-Species-Using-Logistic-Regression.ipynb)\n",
57+
"\n",
58+
"Let's jump right in!\n",
59+
"\n",
60+
"> The book provides an overview of common supervised learnig methods, and features a detailed treatment of common machine learning workflows. Below is a summary of these topics. For more information, please refer to the book.\n",
61+
"\n",
62+
"\n",
63+
"## Supervised learning in OpenCV\n",
64+
"\n",
5065
"OpenCV provides a pretty straightforward interface for all its statistical\n",
5166
"learning models, which includes all supervised learning models.\n",
5267
"In OpenCV, every machine learning model derives from the `cv::ml::StatModel` base\n",
@@ -61,33 +76,12 @@
6176
"- **Set parameters**: If the model needs some parameters, we can set them via setter methods, which can be different for every model. For example, in order for a $k$-NN algorithm to work, we need to specify its open parameter, $k$ (as we will find out later).\n",
6277
"- **Train the model**: Every model must provide a method called `train`, used to fit the model to some data.\n",
6378
"- **Predict new labels**: Every model must provide a method called `predict`, used to predict the labels of new data.\n",
64-
"- **Score the model**: Every model must provide a method called `calcError`, used to measure performance. This calculation might be different for every model.\n",
65-
"\n",
66-
"Along the way, we want to address the following questions:\n",
67-
"- What's the difference between classification and regression, and when do I use which?\n",
68-
"- What is a $k$-nearest neighbor ($k$-NN) classifier, and how do I implement one in OpenCV?\n",
69-
"- How do I use logistic regression for classification, and why is it named so confusingly?\n",
70-
"- How do I build a linear regression model in OpenCV, and how does it differ from Lasso and ridge regression?\n",
71-
"\n",
72-
"## Outline\n",
73-
"\n",
74-
"- [Measuring Model Performance with Scoring Functions](03.01-Measuring-Model-Performance-with-Scoring-Functions)\n",
75-
"- [Understanding the k-NN Algorithm](03.02-Understanding-the-k-NN-Algorithm.ipynb)\n",
76-
"- [Using Regression Models to Predict Continuous Outcomes](03.03-Using-Regression-Models-to-Predict-Continuous-Outcomes.ipynb)\n",
77-
"- [Applying Lasso and Ridge Regression](03.04-Applying-Lasso-and-Ridge-Regression)\n",
78-
"- [Classifying Iris Species Using Logistic Regression](03.05-Classifying-Iris-Species-Using-Logistic-Regression)\n",
79-
"\n",
80-
"Let's jump right in!\n",
81-
"\n",
82-
"> The book also provides an overview over common supervised learning methods, allowing you to take the right approach for the task at hand."
79+
"- **Score the model**: Every model must provide a method called `calcError`, used to measure performance. This calculation might be different for every model."
8380
]
8481
},
8582
{
8683
"cell_type": "markdown",
87-
"metadata": {
88-
"deletable": true,
89-
"editable": true
90-
},
84+
"metadata": {},
9185
"source": [
9286
"<!--NAVIGATION-->\n",
9387
"< [Dealing with Data Using OpenCV's TrainData Container in C++](02.05-Dealing-with-Data-Using-the-OpenCV-TrainData-Container-in-C++.ipynb) | [Contents](../README.md) | [Measuring-Model-Performance-with-Scoring-Functions](03.01-Measuring-Model-Performance-with-Scoring-Functions.ipynb) >"
@@ -114,5 +108,5 @@
114108
}
115109
},
116110
"nbformat": 4,
117-
"nbformat_minor": 0
111+
"nbformat_minor": 1
118112
}

0 commit comments

Comments
 (0)