Global

Methods

convert2frequencies(total) → {function}

Source:
Parameters:
Name Type Description
total
Returns:
Type:
function

countClasses(arr) → {*}

Source:
Parameters:
Name Type Description
arr
Returns:
Type:
*

entropy() → {Impurity}

Source:
Returns:
Type:
Impurity

gini() → {Impurity}

Source:
Returns:
Type:
Impurity

sigmoid(func, dfunc) → {ActivationFunction}

Source:
Parameters:
Name Type Description
func function x => 1 / (1 + Math.exp(-x))
dfunc function y => y * (1 - y)
Returns:
Type:
ActivationFunction

tanh(func, dfunc) → {ActivationFunction}

Source:
Parameters:
Name Type Description
func function x => Math.tanh(x)
dfunc function y => 1 - (y * y)
Returns:
Type:
ActivationFunction

variance() → {Impurity}

Source:
Returns:
Type:
Impurity