The standard way of computing the kernel PCA using AOCL-DA is as follows.
Initialize a
aoclda.factorization.KernelPCA()object with options set in the class constructor.Compute the kernel PCA for your data matrix using
aoclda.factorization.KernelPCA.fit().Perform further transformations as necessary using
aoclda.factorization.KernelPCA.transform()oraoclda.factorization.KernelPCA.inverse_transform().Extract results from the
aoclda.factorization.KernelPCA()object via its class attributes.
Initialize a
da_handlewithda_handle_typeda_handle_kernel_pca.Pass data to the handle using da_kernel_pca_set_data_?.
Set the kernel type, number of components, and other parameters using da_options_set_? (see below).
Compute the kernel PCA using da_kernel_pca_compute_?.
Perform further transformations as necessary using da_kernel_pca_transform_? or da_kernel_pca_inverse_transform_?.
Extract results using da_handle_get_result_?.