24 #ifndef __MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 25 #define __MLPACK_METHODS_KERNEL_PCA_KERNEL_PCA_HPP 74 void Apply(
const arma::mat& data,
75 arma::mat& transformedData,
78 const size_t newDimension);
88 void Apply(
const arma::mat& data,
89 arma::mat& transformedData,
100 void Apply(
const arma::mat& data,
101 arma::mat& transformedData,
117 void Apply(arma::mat& data,
const size_t newDimension);
145 #include "kernel_pca_impl.hpp" 147 #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.
std::string ToString() const
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.
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.