• Stars
    star
    1,620
  • Rank 28,882 (Top 0.6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 5 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The basic distribution probability Tutorial for Deep Learning Researchers

distribution-is-all-you-need

distribution-is-all-you-need is the basic distribution probability tutorial for most common distribution focused on Deep learning using python library.

Overview of distribution probability

distribution probabilities and features

  1. Uniform distribution(continuous), code
    • Uniform distribution has same probaility value on [a, b], easy probability.

  1. Bernoulli distribution(discrete), code
    • Bernoulli distribution is not considered about prior probability P(X). Therefore, if we optimize to the maximum likelihood, we will be vulnerable to overfitting.
    • We use binary cross entropy to classify binary classification. It has same form like taking a negative log of the bernoulli distribution.

  1. Binomial distribution(discrete), code
    • Binomial distribution with parameters n and p is the discrete probability distribution of the number of successes in a sequence of n independent experiments.
    • Binomial distribution is distribution considered prior probaility by specifying the number to be picked in advance.

  1. Multi-Bernoulli distribution, Categorical distribution(discrete), code
    • Multi-bernoulli called categorical distribution, is a probability expanded more than 2.
    • cross entopy has same form like taking a negative log of the Multi-Bernoulli distribution.

  1. Multinomial distribution(discrete), code
    • The multinomial distribution has the same relationship with the categorical distribution as the relationship between Bernoull and Binomial.

  1. Beta distribution(continuous), code
    • Beta distribution is conjugate to the binomial and Bernoulli distributions.
    • Using conjucation, we can get the posterior distribution more easily using the prior distribution we know.
    • Uniform distiribution is same when beta distribution met special case(alpha=1, beta=1).

  1. Dirichlet distribution(continuous), code
    • Dirichlet distribution is conjugate to the MultiNomial distributions.
    • If k=2, it will be Beta distribution.

  1. Gamma distribution(continuous), code
    • Gamma distribution will be beta distribution, if Gamma(a,1) / Gamma(a,1) + Gamma(b,1) is same with Beta(a,b).
    • The exponential distribution and chi-squared distribution are special cases of the gamma distribution.

  1. Exponential distribution(continuous), code
    • Exponential distribution is special cases of the gamma distribution when alpha is 1.

  1. Gaussian distribution(continuous), code
    • Gaussian distribution is a very common continuous probability distribution

  1. Normal distribution(continuous), code
    • Normal distribution is standarzed Gaussian distribution, it has 0 mean and 1 std.

  1. Chi-squared distribution(continuous), code
    • Chi-square distribution with k degrees of freedom is the distribution of a sum of the squares of k independent standard normal random variables.
    • Chi-square distribution is special case of Beta distribution

  1. Student-t distribution(continuous), code
    • The t-distribution is symmetric and bell-shaped, like the normal distribution, but has heavier tails, meaning that it is more prone to producing values that fall far from its mean.

Author

If you would like to see the details about relationship of distribution probability, please refer to this.

  • Tae Hwan Jung @graykode, Kyung Hee Univ CE(Undergraduate).
  • Author Email : [email protected]
  • If you leave the source, you can use it freely.

More Repositories

1

nlp-tutorial

Natural Language Processing Tutorial for Deep Learning Researchers
Jupyter Notebook
14,066
star
2

nlp-roadmap

ROADMAP(Mind Map) and KEYWORD for students those who have interest in learning NLP
3,216
star
3

gpt-2-Pytorch

Simple Text-Generator with OpenAI gpt-2 Pytorch Implementation
Python
963
star
4

xlnet-Pytorch

Simple XLNet implementation with Pytorch Wrapper
Jupyter Notebook
576
star
5

commit-autosuggestions

A tool that AI automatically recommends commit messages.
Python
383
star
6

toeicbert

TOEIC(Test of English for International Communication) solving using pytorch-pretrained-BERT model.
Python
119
star
7

modelsummary

All Model summary in PyTorch similar to `model.summary()` in Keras
Python
86
star
8

matorage

Matorage is tensor(multidimensional matrix) object storage manager for deep learning framework(Pytorch, Tensorflow V2, Keras)
Python
73
star
9

KorQuAD-beginner

Guide KorQuAD upload to leaderboard (EM 68.947 / F1 88.468) model which only use BERT-multilingual(single)
Python
41
star
10

aws-kubeflow

A guideline for basic use and installation of kubeflow in AWS.
Jupyter Notebook
38
star
11

vision-tutorial

Computer Vision Tutorial for Deep Learning Researchers
Python
33
star
12

DeepLearning-Study

This is repository for DeepLearning Study in Kyung Hee University
Python
28
star
13

DAC

Deep Adaptive Image Clustering Paper Implementation
Jupyter Notebook
28
star
14

horovod-ansible

Create Horovod cluster easily using Ansible
HCL
22
star
15

aws-kubeadm-terraform

create kubernetes cluster on AWS only typing 'terraform apply' on 3 minutes.
HCL
16
star
16

kubernetes-glusterfs-aws

file system clustering as glusterfs in kubernetes environment on aws platform
Shell
13
star
17

mlm-pipeline

mlm-pipeline is a cloud architecture that preprocesses the masked language model (mlm)
Python
10
star
18

linux0.11-kernel-code-review

The old Linux kernel source ver 0.11 review with line by line for OS lecture.
C
10
star
19

khuthon2018

딥러닝을 사용한 맛집 분석 - 2018년 쿠톤(해커톤)
JavaScript
8
star
20

projects

MY PROJECT LIST AT A GLANCE 🌈🚀🦄
7
star
21

graykode.github.io

graykode's blog
Shell
4
star
22

ALGORITHM-MASTER

I LOVE ALGORITHM
C++
4
star
23

nlpblock

Use Abstractions Level Block for NLP with Pytorch
Python
3
star
24

intellij-foundry

Kotlin
3
star
25

ml-kubernetes-tutorial

very basic tutorial for who interesting in Machine Learning Serving with Docker, Kubernetes, Kubeflow
3
star
26

mnist-flow

This Project is only repository for solving AI Engineer Party
Python
3
star
27

modelaverage

tf-keras, make the average of model weight in same model.
Python
3
star
28

nonce-python

2019 github seminar in D.COM
HTML
2
star
29

nlp-advance

Simple Paper Implementation Code about all model after Attention is all you need(Transformer)
2
star
30

graykode

1
star
31

ohora

Jupyter Notebook
1
star