Description Usage Arguments Value
A custom PCA function that does PCA on train data and applies the results to test. Returns first 'n' PCs of train and test results in a list.
1 | custom_pca(train, test, n)
|
train |
training data that PCA model will be calculated on |
test |
test data for applying the PCA results on to. |
n |
indicates the wanted number of Principal Components to be returned |
A list of first n principle components of train and test data, respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.