sklearn.kernel_approximation#

Approximate kernel feature maps based on Fourier transforms and count sketches.

User guide. See the Kernel Approximation section for further details.

AdditiveChi2Sampler

Approximate feature map for additive chi2 kernel.

Nystroem

Approximate a kernel map using a subset of the training data.

PolynomialCountSketch

Polynomial kernel approximation via Tensor Sketch.

RBFSampler

Approximate a RBF kernel feature map using random Fourier features.

SkewedChi2Sampler

Approximate feature map for "skewed chi-squared" kernel.