14 #ifndef MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 15 #define MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 64 void Apply(
const arma::mat& data,
65 arma::mat& transformedData,
68 const size_t newDimension);
78 void Apply(
const arma::mat& data,
79 arma::mat& transformedData,
90 void Apply(
const arma::mat& data,
91 arma::mat& transformedData,
107 void Apply(arma::mat& data,
const size_t newDimension);
132 #include "kernel_pca_impl.hpp" 134 #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.
The core includes that mlpack expects; standard C++ includes and Armadillo.
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.
This class performs kernel principal components analysis (Kernel PCA), for a given kernel...
bool CenterTransformedData() const
Return whether or not the transformed data is centered.