Learn R Programming

popsom (version 5.2)

fitted: Fit Observations

Description

Computes a vector of labels assigned to each of the observations in the training data through the constructed cluster model. If the training data is unlabeled then generated labels are used.

Usage

fitted(map)

Arguments

map

An object of type 'map'.

Value

A vector of predicted labels, one for each observations in the training data.

Examples

Run this code
# NOT RUN {
data(iris)

df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)

m <- map(df,labels,xdim=15,ydim=10,train=10000)

fitted(m)
# }

Run the code above in your browser using DataLab