Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Classification using
Logistic Regression
Ingmar Schuster
Patrick Jhnichen
using slides by Andrew Ng
Logistic regression 2
This lecture covers
Logistic regression
hypothesis
Decision Boundary
Cost function
(why we need a new one
$dvanced %ptimi&ation
$lgorithms
'ulticlass classification
Logistic regression 3
Logistic regression
Hypothesis Representation
Logistic regression 4
Classification (ro)lems
Classification
Spam or Ham
Positi!e Sentiment"
*ant
$ asymptote for
0ypothesis
Interpretation
If
or e4uivalently
predict y ) &
If
or e4uivalently
predict y ) $
Logistic regression 9
56ample
If
and
(rediction y 7 + whenever
Logistic regression 10
56ample
If
and
(rediction y 7 + whenever
Logistic regression 11
Logistic regression
*ost +unction
Logistic regression 12
Training and cost function
$verage cost
13
Reusing Linear Regression cost
But for
Corresponds to intuition8
if prediction is h,-. ) $ )ut
actual value was y ) &1
learning algorithm will )e
penali&ed )y large cost
Logistic regression 15
Logistic Regression Cost function
But for
Logistic regression 16
Logistic regression
Simpliied *ost +unction /
0radient (escent
Logistic regression 17
!implified Cost .unction (+
Comple6
%ptimi&ation $lgorithms
(Gradient Descent)
Con;ugate #radient
%ctave<'atla)
=ava
Logistic regression
hypothesis
Decision Boundary
$dvanced %ptimi&ation
$lgorithms
'ulticlass classification
Machine Learning Introduction 29
(ictures