Competitive Activation Function
y = ann_compet_activ(x)
Input vector/matrix, one column represent 1 set of data
Output vector/matrix with winning neuron
This is the activation function for competitive network, in which it will return the winning neoron as 1, while others as 0.
ann_compet_activ(rand(5,5)) | ![]() | ![]() |