Learn R Programming

DrugClust (version 0.2)

PredictionKMeans: PredictionKMeans

Description

Function finding the predictions for the uncharacterized drugs given the KMeans clustering algorithm

Usage

PredictionKMeans(A, cl, test)

Arguments

A
Bayesian model given by the application of KMeansModel algorithm
cl
structure of clusters given by the KMeans function
test
test matrix of drugs

Value

predizioni matrix with a number of rows equal to the number of clusters and a number of columns equal to the features

Examples

Run this code
# A will be the result of the previous call of KMeans model funcion
#cl will be the result of KMeans function
#test is the test feature matrix
#predizioni<-PredictionKMeans(A,cl,test)

Run the code above in your browser using DataLab