NystroemKernelRule< KernelType, PointSelectionPolicy > Class Template Reference

Static Public Member Functions

static void ApplyKernelMatrix (const arma::mat &data, arma::mat &transformedData, arma::vec &eigval, arma::mat &eigvec, const size_t rank, KernelType kernel=KernelType())
 Construct the kernel matrix approximation using the nystroem method. More...

 

Detailed Description


template<typename KernelType, typename PointSelectionPolicy = kernel::KMeansSelection<>>
class mlpack::kpca::NystroemKernelRule< KernelType, PointSelectionPolicy >

Definition at line 27 of file nystroem_method.hpp.

Member Function Documentation

◆ ApplyKernelMatrix()

static void ApplyKernelMatrix ( const arma::mat &  data,
arma::mat &  transformedData,
arma::vec &  eigval,
arma::mat &  eigvec,
const size_t  rank,
KernelType  kernel = KernelType() 
)
inlinestatic

Construct the kernel matrix approximation using the nystroem method.

Parameters
dataInput data points.
transformedDataMatrix to output results into.
eigvalKPCA eigenvalues will be written to this vector.
eigvecKPCA eigenvectors will be written to this matrix.
rankRank to be used for matrix approximation.
kernelKernel to be used for computation.

Definition at line 40 of file nystroem_method.hpp.

References NystroemMethod< KernelType, PointSelectionPolicy >::Apply(), mlpack::math::Center(), and Log::Fatal.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/kernel_pca/kernel_rules/nystroem_method.hpp