CosineSimilarityToTrainingOnSubspace: Compute cosine similarity between a testing sample and each...

View source: R/metafeaturefunctions.R

CosineSimilarityToTrainingOnSubspaceR Documentation

Compute cosine similarity between a testing sample and each training sample in the combined subspace matrix.

Description

Compute cosine similarity between a testing sample and each training sample in the combined subspace matrix.

Usage

CosineSimilarityToTrainingOnSubspace(opt, inputDataTest, inputDataTrain, samp)

Arguments

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.

Value

A matrix of similarities, where the rows are the training data samples and the columns are the testing data samples.


ncats/MultiOmicsGraphPrediction documentation built on Aug. 23, 2023, 9:19 a.m.