Random Fourier features
ID: random-fourier-features
Random Fourier features approximate a continuous translation-invariant positive-semidefinite kernel on with . Its spectral probability distribution gives frequencies satisfying .
Draw independent and identically distributed random variables from this distribution and independent from the continuous uniform distribution on . Define the feature mapAveraging the product of two cosines over leaves one half of , so . Every realized approximate kernel matrix is positive semidefinite because it is a Gram matrix. Increasing averages more sampled features; it does not make the finite approximation identically equal to the original positive-semidefinite kernel.[ref]
For a positive-semidefinite kernel with positive diagonal constant , normalize by and multiply by . The identically zero case needs no random features.
New to topics? Read the docs here!