Generates features according to different non-linear basis expansion methods
Currently implemented methods:
-
Expands each feature I with 1 <= I <= n_features as a vector of n features as exp(-\gamma x_i^2) .* [1, z, (z^2)/sqrt(2!), (z^3)/sqrt(3!) , …, (z^n)/sqrt(n!)] where z= \sqrt(2*\gamma) x_i. ie. For any given n you will now get a vector of size n_features*(n+1). Given a value for n, repeats for k = 1, 2, 3, ... n
-
Recht and Rahimi’s Random Fourier Features as defined in Rahimi, Ali, and Benjamin Recht. "Random features for large-scale kernel machines." In Advances in neural information processing systems, pp. 1177-1184. 2007.
Rishi Dua http://github.com/rishirdua
Todo: Implementing other basis: Gaussian, Polynomial etc.
- Issue Tracker: https://github.com/rishirdua/basis-expansion/
- Source Code: github.com/rishirdua/basis-expansion
- Project page: http://rishirdua.github.io/basis-expansion
This project is licensed under the terms of the MIT license. See LICENCE.txt for details