Coder Social home page Coder Social logo

bayesian_model_selection's Introduction

INSTRUCTIONS: To run the program and get all output (from command line and in results folder), simply run: $ python3 main.py

Task 1

  • Plot training set MSE and test set MSE (BOTH!) against gamma
  • Compare these values with the true MSE of the true functions
  • Why cannot use training set results to select gamma
  • How gamma affects error on the test set
  • How to explain these effects

Task 2

  • Pick 3 gamma values: too small, just right, too large
  • Find the learning curve on the 1000-100 dataset ONLY!
  • Vary the training size between 10 and 800 samples (not the whole training set)
  • How does test set MSE depend on both gamma and training size

Task 3

  • Implement the iterative method to find alpha and beta
  • Apply to all 5 datasets
  • Show how this compares to the results from task 1 in terms of both lambda and mse
  • How quality depends on number of examples and features? (This is done by looking at the first 3 datasets)

Task 4

  • For d = 1: 10, run model selection to choose alpha, beta and find log evidence
  • Calculate MSE on test set using MAP for prediction
  • Also run non-regularized on the same data set and calculate MSE (augmented dataset)
  • The log evidence is done on the train data set?
  • Plot log evidence and 2 MSE values over d
  • Should we choose alpha, beta and d based on log evidence?

Task 1 output optimal lambda: 8 MSE: 4.15967850948 optimal lambda: 22 MSE: 5.07829980059 optimal lambda: 27 MSE: 4.31557063032 optimal lambda: 75 MSE: 0.389023387713 optimal lambda: 2 MSE: 0.625308842305

bayesian_model_selection's People

Watchers

James Cloos avatar Duc Nguyen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.