View source: R/metafeaturefunctions.R
CosineSimilarityToTrainingOnSubspace | R Documentation |
Compute cosine similarity between a testing sample and each training sample in the combined subspace matrix.
CosineSimilarityToTrainingOnSubspace(opt, inputDataTest, inputDataTrain, samp)
opt |
The optimal model obtained using FindOptimalSubspaceClustering on the training data. |
inputDataTest |
The testing data. |
inputDataTrain |
The training data. |
samp |
The name of the testing sample against which to compute similarity. |
A matrix of similarities, where the rows are the training data samples and the columns are the testing data samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.