Compute Classification Labels for Given Points
Compute classification labels for points in a given data frame using the underlying clustering model. If the training data is unlabeled then generated labels are used.
predict(map,points)
map |
An object of type 'map'. |
points |
A data frame of points to be classified. |
A data frame with classification results. The data frame has two columns:
The assigned label to the observation at the same row in the 'points' data frame.
A confidence value assigned to the label prediction.
Lutz Hamel
data(iris) df <- subset(iris,select=-Species) labels <- subset(iris,select=Species) m <- map(df,labels,xdim=15,ydim=10,train=10000) predict(m,df)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.