norm.softmax: Softmax normalisation

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

norm.softmaxR Documentation

Softmax normalisation

Description

Calculates a softmax-like normalisation for the class frequencies.

Usage

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 29, 2024, 6:50 a.m.