Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.
/ rk-bfr Public archive

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

License

Notifications You must be signed in to change notification settings

antcc/rk-bfr

Repository files navigation

This package was developed as part of my master's thesis, which has since been rewritten and expanded as an article. An improved version of this package that uses RJMCMC samplers is available here.


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.

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.

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. Additionally, there are Jupyter notebooks that demonstrate the usage of the code.

Code developed for Python 3.9.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published