torchml.kernel_approximations¶
Classes¶
torchml.kernel_approximations.RBFSampler
¶
Description¶
RBFSampler constructs an approximate mapping for Random Kitchen Sinks.
References¶
- Ali Rahimi and Benjamin Rechti's Weighted Sums of Random Kitchen Sinks paper
- The scikit-learn documentation page
Arguments¶
gamma
(float, default=1.0) - Parameter of RBF kernel.n_components
(int, default=100) - Dimensionality of the computed feature space.random_state
(int, default=None) - Passed in seed that controls the generation of the random weights and random offset when fitting the training data.
Example¶
rbfsampler = RBFSampler()