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);
47 void Apply(arma::mat& output);
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"
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
void Apply(arma::mat &output)
Apply the low-rank factorization to obtain an output matrix G such that K' = G * G^T.
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.