Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

Lutz Hamel

Examples

data(iris)

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

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

fitted(m)

popsom

Tools for Building, Visualizing, and Evaluating Self-Organizing Maps

v5.1
GPL
Authors
Lutz Hamel [aut, cre], Benjamin Ott [aut], Gregory Breard [aut], Robert Tatoian [aut], Michael Eiger [aut], Vishakh Gopu [aut]
Initial release
2020-12-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.