Skip to content

[AISTATS 2023] Error Estimation for Random Fourier Features

Notifications You must be signed in to change notification settings

jwyyy/bootstrappedRFF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Error Estimation for Random Fourier Features

This repository provides code for demonstrating how to apply bootstrap to obtain posteriori error estimation for random Fourier features. We study how the bootstrap method performs in various applications, such matrix approximation, kernel ridge regression, and hypothesis testing using maximum mean discrepancy. Experiments are conducted across multiple real and simulated datasets. All results presented in the paper are reproducible by running the corresponding code snippets. Following explains the organization and contents of this repository.

Matrix Approximation Experiments

The matrix approximation folder contains the code for the kernel matrix approximation experiments.

  1. The genTestMatrix.py provides methods that prepare the experiment data.
  2. The bootstrap.py implements the bootstrap procedure including the extraploation approach.
  3. The script runs.py has a complete list of Python commands that reproduce the experiment results.

Kernel Ridge Regression and Maximum Mean Discrepancy Experiments

The krr + mmd folder contains the code for both KRR and MMD experiments.

  1. The rffboot folder is a reusable module that implements data generating methods, kernel related computations, and other util methods (such as plot).
  2. The kernel_ridge folder has one script main.py and one implementation folder impl. Run the script file using python main.py to get the results of a KRR experiment.
  3. The mmd folder also has one script main.py and one implementation folder impl. Run the script file using python main.py to get the results of an MMD experiment.
  4. Note: Both KRR and MMD experiments are parallel programs. When running the experiment, make sure that the machine can handle the experiment configurations.

Reference

J. Yao, N. B. Erichson, and M. E. Lopes. Error Estimation for Random Fourier Features, AISTATIS, 2023.
(included in oral presentation, top 1.9% of submissions)

About

[AISTATS 2023] Error Estimation for Random Fourier Features

Topics

Resources

Stars

Watchers

Forks

Languages