Description Usage Arguments Author(s) References Examples
Performs k++ with semi-supervision
1 2 3 4 5  | 
data | 
 data  | 
knownLabels | 
 vector of indices of rows of x whose labels are known  | 
trueLabels | 
 length nrow(x) vector of true labels (only trueLabels[knownLabels] matter)  | 
numGroups | 
 number of clsuters considered  | 
Jordan Yoder
http://www.stat.washington.edu/mclust/
1 2 3 4 5 6 7 8  | data = matrix(runif(20),nrow=10,ncol=2)
library(ssClust)
centers = kppInit(data, numGroups=3, 
knownLabels=c(1,2), trueLabels=c(1,0)) #note trueLabels are 0-indexed
all(centers[[1]]==data[2,]) #center 1 must be data2 because the true label of 2 is 0
all(centers[[2]]==data[1,]) #center 2 must be data1 because the true label of 1 is 1
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.