Skip to content

Generative Learning algorithms implementation using numpy. I implemented Gaussian discriminant analysis and Naive Bayes.

License

Notifications You must be signed in to change notification settings

IsraelAbebe/Generative-Learning-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative Learning algorithms


lecture notes

The generative model is the model that first try to learn what each object might look like. Then, based on input, it gives a probability of the input being this class.

Gaussian discriminant analysis


In this model, we’ll assume that p(x|y) is distributed according to a multivariate normal distribution. Let’s talk briefly about the properties of multivariate normal distributions before moving on to the GDA model itself.

Naive Bayes


image

Using Bayes theorem, we can find the probability of A happening, given that B has occurred. Here, B is the evidence and A is the hypothesis. The assumption made here is that the predictors/features are independent. That is presence of one particular feature does not affect the other. Hence it is called naive.source blog

Setup

pip install -r requirements.txt

usage


refer to usage notebook

About

Generative Learning algorithms implementation using numpy. I implemented Gaussian discriminant analysis and Naive Bayes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published