|
8 | 8 | "\n",
|
9 | 9 | "## Learning objectives\n",
|
10 | 10 | "\n",
|
11 |
| - "* Select different machine learning models in `scikit-learn`, and train them \n", |
| 11 | + "* Select different machine learning models in `scikit-learn` and train them \n", |
12 | 12 | "* Understand that models have different characteristics, including flexibility, parameterisation, and more, which affects model selection and efficacy\n",
|
13 | 13 | "* Explain the model flexibility/over-fit trade off \n",
|
14 |
| - "* Explain what model train and test error are, and how these relate to overfitting " |
| 14 | + "* Explain what model train and test errors are, and how these relate to overfitting " |
15 | 15 | ]
|
16 | 16 | },
|
17 | 17 | {
|
|
782 | 782 | "### Summary\n",
|
783 | 783 | "\n",
|
784 | 784 | "* We have used a linear model to classify points into two classes.\n",
|
785 |
| - "* We achieves a 95% accuracy score on the test set: this means that given a new (representative) point, we should have a 95% chance of this point being accurately classified." |
| 785 | + "* We achieved a 95% accuracy score on the test set: this means that given a new (representative) point, we should have a 95% chance of this point being accurately classified." |
786 | 786 | ]
|
787 | 787 | },
|
788 | 788 | {
|
|
1321 | 1321 | "metadata": {},
|
1322 | 1322 | "source": [
|
1323 | 1323 | "* Lets plot the misclassified points, but also the decision boundary\n",
|
1324 |
| - "* For binary logistic regression, this is the line where the probability of belonging to a class is 0.5" |
| 1324 | + "* For a binary logistic regression, this is the line where the probability of belonging to a class is 0.5" |
1325 | 1325 | ]
|
1326 | 1326 | },
|
1327 | 1327 | {
|
|
1380 | 1380 | "cell_type": "markdown",
|
1381 | 1381 | "metadata": {},
|
1382 | 1382 | "source": [
|
1383 |
| - "## Changing model\n", |
| 1383 | + "## Changing the model\n", |
1384 | 1384 | "\n",
|
1385 | 1385 | "* We can potentially get improved performance if we select a new model\n",
|
1386 |
| - "* Lets use an SVM (support Vector Machine) with a radial basel function kernel.\n", |
| 1386 | + "* Lets use an SVM (Support Vector Machine) with a radial basis function kernel.\n", |
1387 | 1387 | "* This can model non-linear decision boundaries."
|
1388 | 1388 | ]
|
1389 | 1389 | },
|
|
1888 | 1888 | ],
|
1889 | 1889 | "metadata": {
|
1890 | 1890 | "kernelspec": {
|
1891 |
| - "display_name": "cfrr", |
| 1891 | + "display_name": "Python 3 (ipykernel)", |
1892 | 1892 | "language": "python",
|
1893 | 1893 | "name": "python3"
|
1894 | 1894 | },
|
|
1902 | 1902 | "name": "python",
|
1903 | 1903 | "nbconvert_exporter": "python",
|
1904 | 1904 | "pygments_lexer": "ipython3",
|
1905 |
| - "version": "3.13.0" |
| 1905 | + "version": "3.9.19" |
1906 | 1906 | }
|
1907 | 1907 | },
|
1908 | 1908 | "nbformat": 4,
|
1909 |
| - "nbformat_minor": 2 |
| 1909 | + "nbformat_minor": 4 |
1910 | 1910 | }
|
0 commit comments