Learn R Programming

sits (version 0.13.0)

.sits_som_label_neurons: Label neurons

Description

Compute the probability of a neuron belongs to a class. The neuron is labelled using the majority voting. If the neuron is empty, it will labeled as "NoClass".

Usage

.sits_som_label_neurons(data, kohonen_obj)

Arguments

data

A SITS tibble with info of samples and kohonen.obj.

kohonen_obj

The kohonen object returned by kohonen package.

Value

Tibble with the probability of each neuron belongs to class and a majority label which is the neuron is labelled.