Learn R Programming

som.nn (version 1.4.4)

get.border.neurons: Get border neurons.

Description

Returns a list of neurons which are on the border between 2 or more classes.

Usage

get.border.neurons(p, classes, model, distance = 1.1)

Value

numeric vector with the indices of all border neurons.

Arguments

p

prediction for training data set

classes

vector of true class lables for prediction

model

Object of class type SOMnn

distance

maximum distance of 2 neurons to be the border. Default 1.1: only direct neighbours.

Details

The function analyses all pairs of neurons with distance <= distance. If samples represented by the pair belong to more than one class, both neurons are added to the list.