get.border.neurons: Get border neurons.

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

get.border.neuronsR Documentation

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)

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.

Value

numeric vector with the indices of all border neurons.


som.nn documentation built on May 29, 2024, 6:50 a.m.