rfflearn_logo

User's Manual

RFFLearn is a Python library of random Fourier features (hereinafter abbreviated as RFF) [1, 2] for kernel methods, like support vector machine [3, 4] and Gaussian process model [5]. Features of this module are:

  • User-friendly interfaces: Interfaces of the rfflearn module are quite close to the scikit-learn library,
  • Example code first: This repository provides plenty of example code to demonstrate that RFF is useful for actual machine learning tasks,
  • GPU support: Some classes in the rfflearn module provides both GPU training and inference for faster computation,
  • Wrapper to the other library: Interface to optuna and SHAP are provided for easier hyper-parameter tuning and feature importance analysis.

Tutorials

Setting Up

Build development environment for RFFLearn. The author recommend to use Docker, but you can build on your environment if you don't mind to pollute your environment.

See more details

Quick Start

Try RFFlearn from a tiny code (7 lines!). RFFLearn will be easily acceptable for many ML developers because the usage of RFFLearn is quite close to Scikit-learn.

See more details

Minimal Examples

Collection of code snippets for RFF-based models, hyperparameter tuners, and feature importance visualizers. See the section below for more practical examples.

See more details

Practical Examples

RFF_least_square_regression

Least square regression with random Fourier features

RFFGPR_sparse_data

Gaussian process regression with random Fourier features

RFFSVC_Inference_time_and_acc_on_MNIST

Support vector classifier with random Fourier features for the MNIST dataset

RFFGPC_Inference_time_and_acc_on_MNIST

Gaussian process classifier with random Fourier features for the MNIST dataset

PCA_for_swissroll

Principal component analysis (PCA) with random Fourier features for Swiss roll dataset

RFFCCA_for_artificial_data

Canonical correlation analysis (CCA) with random Fourier features

Hyperparameter_search

Automatic hyperparameter tuning for California housing dataset

California_housing_permutation_importance

Feature importance of RFF-based regressor for California housing dataset

API Reference

References