Bayesian Reasoning
In Data Science
Cristiano Fanelli
18/10/2022 - Lectures 13
Outline
2
Logistic Regression
3
Credits: University of Toronto
Likely, you are familiar with logistic regression, a Machine Learning classification algorithm used to assign observations to a discrete set of classes.
Example
Logistic (Sigmoid) Function
5
Hypothesis Representation:
Sigmoid:
features
You can decide a threshold to make a decision (e.g., everything above 0.5 is dog, anything below is cat)
Cost Function and Gradient Descent
6
The cost function represents and optimization objective. i.e., we create a cost function and minimize:
Cost Function and Gradient Descent
7
to minimize our cost function we need to run the gradient descent function on each parameter, i.e.:
Gradient Descent Simplified | Image: Andrew Ng Course
Now, let’s take a look at Bayesian Logistic Regression
8
Useful References
9
References of our course
10
https://cfteach.github.io/brds/referencesmd.html
Backup