Coder Social home page Coder Social logo

antcc / rk-bfr Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 242.24 MB

A functional regression framework built on Bayesian inference and RKHS's.

License: GNU General Public License v3.0

Jupyter Notebook 98.36% Python 1.63% Shell 0.01%
bayesian fda logistic-regression linear-regression rkhs mcmc

rk-bfr's Introduction

This package was developed as part of my master's thesis, which has since been rewritten and expanded as an article.


rk-bfr

A Bayesian framework for functional linear and logistic regression models, built on the theory of RKHS's. An overview of the models is available on Chapter 3 here or Section 2 here.

Code structure

  • The folder rkbfr contains the inference and prediction pipeline implemented, using the emcee MCMC sampler and following the style of the scikit-learn and scikit-fda libraries.
  • The folder reference_methods contains the implementation of some functional algorithms used for comparison.
  • The folder utils contains several utility files for experimentation and visualization.
  • The experiments folder contains plain text files with numerical experimental results, as well as .csv and .npz files that facilitate working with them directly in Python.

Usage

There are some experiments (with both simulated and real data) available to test the performance of the models against other usual alternatives, functional or otherwise. The script results_cv.py runs the experiments with a cross-validation loop for our Bayesian models, while the script results_all.py runs the experiments for all hyperparameters without a cross-validation loop.

A typical execution can be seen in the launch.sh file, and additionally there are two Jupyter notebooks that demonstrate the usage of the code.

Code developed for Python 3.9.

rk-bfr's People

Contributors

antcc avatar

Stargazers

 avatar  avatar

Watchers

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