Learn R Programming

yakmoR (version 0.1.1)

orthoKMeansPredict: orthogonal kmeans prediction function

Description

orthogonal kmeans prediction function

Usage

orthoKMeansPredict(x, obj = NULL, verbose = FALSE)

Arguments

x
data to assign clusters
obj
an object returned by orthoKMeansTrain
verbose
show verbose messages?

Value

a matrix with as many colums as rounds trained

Examples

Run this code
obj = yakmoR::orthoKMeansTrain (x = as.matrix(iris[seq(1,150,2),1:4]),
			k = 3, rounds = 3)
	predictions = yakmoR::orthoKMeansPredict (x = as.matrix(iris[seq(2, 150, 2),1:4]),
			obj = obj)

Run the code above in your browser using DataLab