norm.softmax: Softmax normalisation

Description Usage Arguments Details Value

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

Description

Calculates a softmax-like normalisation for the class frequencies.

Usage

1
norm.softmax(x, t = 0.2)

Arguments

x

vector of votes for classes

t

temperature parameter.

Details

Softmax function is applied to a vector to squeeze the values in a way that they sum up to 1.0:

som.nn.softmax(x) = exp(x/T) / sum(exp(x/T))

Low values for T result in a strong separation of output values. High values for T make output values more equal.

Value

Vector of softmax normalised values.


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