16 #ifndef __MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 17 #define __MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 66 void Apply(
const arma::mat& data,
67 arma::mat& transformedData,
70 const size_t newDimension);
80 void Apply(
const arma::mat& data,
81 arma::mat& transformedData,
92 void Apply(
const arma::mat& data,
93 arma::mat& transformedData,
109 void Apply(arma::mat& data,
const size_t newDimension);
134 #include "kernel_pca_impl.hpp" 136 #endif // __MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP KernelType kernel
The instantiated kernel.
KernelPCA(const KernelType kernel=KernelType(), const bool centerTransformedData=false)
Construct the KernelPCA object, optionally passing a kernel.
Linear algebra utility functions, generally performed on matrices or vectors.
bool & CenterTransformedData()
Return whether or not the transformed data is centered.
void Apply(const arma::mat &data, arma::mat &transformedData, arma::vec &eigval, arma::mat &eigvec, const size_t newDimension)
Apply Kernel Principal Components Analysis to the provided data set.
bool centerTransformedData
If true, the data will be scaled (by standard deviation) when Apply() is run.
KernelType & Kernel()
Modify the kernel.
const KernelType & Kernel() const
Get the kernel.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
bool CenterTransformedData() const
Return whether or not the transformed data is centered.
This class performs kernel principal components analysis (Kernel PCA), for a given kernel...