som.nn.visual: Mapping function for SOMnn

Description Usage Arguments Details Value

View source: R/som.nn.visual.R

Description

Maps a sample of unknown category to a self-organising map (SOM) stored in a object of type SOMnn.

Usage

1

Arguments

codes

data.frame with codebook vectors.

data

data.frame with data to be mapped. Columns of x must have the same names as columns of codes.

Details

The function returns the winner neuron in codes for each test vector in x. codes and x are one vector per row and must have the same number of columns (i.e. dimensions) and the identical column names.

som.nn.visual is the work horse for the k-NN-like classifier and normally used by calling predict.

Value

data.frame with 2 columns:


som.nn documentation built on May 2, 2019, 8:26 a.m.