Giter Site home page Giter Site logo

andrewczgithub / pnml_linear_regression_simulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kobybibas/pnml_linear_regression_simulation

0.0 0.0 0.0 884 KB

Python simulation for the paper https://arxiv.org/abs/1905.04708.

Python 6.22% Jupyter Notebook 93.69% Shell 0.09%

pnml_linear_regression_simulation's Introduction

A New Look at an Old Problem: A Universal Learning Approach to Linear Regression

Koby Bibas, Yaniv Fogel and Meir Feder

https://arxiv.org/abs/1905.04708

Abstract

Linear regression is a classical paradigm in statistics. A new look at it is provided via the lens of universal learning. In applying universal learning to linear regression the hypotheses class represents the label y as a linear combination of the feature vector x^Tθ, within a Gaussian error. The Predictive Normalized Maximum Likelihood (pNML) solution for universal learning of individual data can be expressed analytically in this case, as well as its associated learnability measure. Interestingly, the situation where the number of parameters M may even be larger than the number of training samples N can be examined. As expected, in this case learnability cannot be attained in every situation; nevertheless, if the test vector resides mostly in a subspace spanned by the eigenvectors associated with the large eigenvalues of the empirical correlation matrix of the training data, linear regression can generalize despite the fact that it uses an over-parametrized model. We demonstrate the results with a simulation of fitting a polynomial to data with a possibly large polynomial degree.

Run the code

The parameters for the code are loacted in src/params.json To run the code

  1. clone the repository
  2. pip install -r requirements.txt
  3. python src/main.py
  4. jupyter-notebook notebooks/analyze_results.ipynb

In order to run the ISIT 2019 figures:

  1. git checkout isit
  2. python src/main_isit.py

Citing

@article{bibas2019new,
  title={A New Look at an Old Problem: A Universal Learning Approach to Linear Regression},
  author={Bibas, Koby and Fogel, Yaniv and Feder, Meir},
  journal={arXiv preprint arXiv:1905.04708},
  year={2019}
}

pnml_linear_regression_simulation's People

Contributors

kobybibas 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.