Learn R Programming

popsom (version 6.0)

map.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 machine-generated labels are used.

Usage

map.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.build(df,labels,xdim=15,ydim=10,train=10000)

map.fitted(m)
# }

Run the code above in your browser using DataLab