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