Lecture 2. Supervised Learning 2
Learning Goals: You should know the concepts and basic mathematics of logistic regression and how it can be used to learn how to do classification. You should be familiar with different classification metrics, such as ROC and AUC. You should also know how to train decision trees . You should be able to run and make modifications to basic matlab and python (scikit learn) code for such algorithms.
Lecture 2 slides Download Lecture 2 slides
Lectore02small.pdf Download Lectore02small.pdf
Lecture 2 video, Youtube link: https://youtu.be/zG4YiGi0HEQ
Links to an external site.
Reading Assignment (this refers to the book Supervised Machine Learning (Links to an external site.) by Lindholm et al):
- Ch 2.3 Decision Trees
- Ch 3.2 Classification and Logistic Regression
- Ch 4.5 Evaluation for Classification Problems
Code used in the lecture:
- iris_setosa.ipynb Links to an external site.(logistic regression on Iris data-binary case)
- iris_multiclass.ipynb Links to an external site. (logistic regression - multiclass case)
- decisiontree_iris.ipynb (Links to an external site.) (decision trees on Iris data)
- decisiontree_cosinus.ipynb (Links to an external site.) (decision tree regression)
-------------------------------------------------------------------------------------------
Lecture session plan:
Mentimeter quiz on Lecture 1
These slides summarize what was discussed on the Lecture-session covering Lec1: week 2 in 2023: Download Lecture-session covering Lec1: week 2 in 2023:
----------
FYI: The following examples were instead during the same Lecture-session in 2022:
- One on face recognition of 20 persons through matching with a training set of 600 prerecorded images. Code: images. faces_compressedsensing.ipynb Links to an external site.
- One on compressed sensing recovering a very sparsely sample audio signal. Code: compressedsensing.ipynb Links to an external site.