PredictionKMeans: PredictionKMeans

Description Usage Arguments Value Examples

View source: R/VariousFunctions.R

Description

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

Usage

1
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

1
2
3
4
# 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)

DrugClust documentation built on May 30, 2017, 2:30 a.m.