Skip to content

AnandShegde/pml_baselines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pml_baselines

Compare different baselines for the Baysian Inference problems.

We compare:

  • MCMC- Markov Chain Monte Carlo
  • ajax - Variational Inference using ajax.
  • Laplace Approximation
  • PyStan - Variational Inference using Stan

1. Coin toss Problem

Stan

coin_toss = """
data {
  int<lower=0> n;
  int<lower=0, upper=1> heads[n];
  real alpha0;
  real beta0;
}
parameters {
  real<lower=0, upper=1> theta;
}
model {
  heads ~ bernoulli(theta);
  theta ~ beta(alpha0, beta0);
}
"""

Model

image

Results

View the results here-https://anandshegde.github.io/pml_baselines/results/coin_toss/coin_toss_results.html

coin_toss_fig

2. Linear Regression

View the results here-https://anandshegde.github.io/pml_baselines/results/linear_regression/linear_regression_results.html

linear_regression_results

3. Logistic Regression

View the results here-https://anandshegde.github.io/pml_baselines/results/logistic_regression/logistic_regression_results.html

result_logistic_regression

4. Weibull Poisson

View the results here-https://anandshegde.github.io/pml_baselines/results/weibull_poisson/weibull_poisson_results.html

weibull_poisson

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published