15#ifndef MLPACK_METHODS_NYSTROEM_METHOD_NYSTROEM_METHOD_HPP
16#define MLPACK_METHODS_NYSTROEM_METHOD_NYSTROEM_METHOD_HPP
26 typename PointSelectionPolicy = KMeansSelection<>
39 NystroemMethod(
const arma::mat& data, KernelType& kernel,
const size_t rank);
57 arma::mat& miniKernel,
58 arma::mat& semiKernel);
68 arma::mat& miniKernel,
69 arma::mat& semiKernel);
73 const arma::mat& data;
84#include "nystroem_method_impl.hpp"
void GetKernelMatrix(const arma::Col< size_t > &selectedPoints, arma::mat &miniKernel, arma::mat &semiKernel)
Construct the kernel matrix with the selected points.
void GetKernelMatrix(const arma::mat *data, arma::mat &miniKernel, arma::mat &semiKernel)
Construct the kernel matrix with matrix that contains the selected points.
NystroemMethod(const arma::mat &data, KernelType &kernel, const size_t rank)
Create the NystroemMethod object.
void Apply(arma::mat &output)
Apply the low-rank factorization to obtain an output matrix G such that K' = G * G^T.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.