Giter Site home page Giter Site logo

sheev13 / bayesian-inference Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 3.47 MB

Jupyter Notebook 100.00%
approximate-inference bayesian-inference bayesian-logistic-regression classification laplace-approximation logistic-regression machine-learning probabilistic-machine-learning inference 3f8

bayesian-inference's Introduction

Bayesian Non-Linearised Logistic Regression

In a previous coursework task for the 3F8 Inference module of the Part IIA Engineering Tripos (3rd year engineering) at the University of Cambridge, we were given a 2-dimensional dataset with binary output data representing the class to which a datapoint belongs. We implemented a logistic regression classifier (by hand, no scikit-learn), but since the required decision boundary was far from linear, it did not perform very well. And so we expanded the input feautures through Gaussian radial basis functions of varying radius, and this performed well, achieving categorical accuracy of up to 90%.

In this task, we seek to improve upon two shortcomings in particular of the non-linearised logistic regression classifier; make use of the information stored in our prior belief of what the model weights should be, reduce confidence of predictions which are near the decision boundary and so more likely to be wrong. We achieve this by adopting a probabilistic approach, namely a Bayesian approach. If you are a part IIA Cambridge engineer, this repository is for the 3F8 Inference FTR - but take note that the report has been altered significantly from what was needed for submission.

In this repository there is:

  • the python notebook
  • the datasets (which are not strictly needed as they are downloaded in the notebook anyway)
  • the report (the important bit)

bayesian-inference's People

Contributors

sheev13 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

vm418

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.