项目作者: IsraelAbebe

项目描述 :
Generative Learning algorithms implementation using numpy. I implemented Gaussian discriminant analysis and Naive Bayes.
高级语言: Jupyter Notebook
项目地址: git://github.com/IsraelAbebe/Generative-Learning-Algorithms.git
创建时间: 2019-12-28T20:31:03Z
项目社区:https://github.com/IsraelAbebe/Generative-Learning-Algorithms

开源协议:MIT License

下载


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

  1. pip install -r requirements.txt

usage


refer to usage notebook