Search code examples
artificial-intelligenceneural-networkbackpropagation

Which activation function should I use for this Neural Network?


We are developing a neural network for Checkers game. In our training data,

0 represents blank cell, 1 represents white piece, -1 represents white king, 2 represents black piece and -2 represents black king

So, what we need is an activation function withing range [-2, 2]. Which activation function should we use? Please give your suggestions regarding this.


Solution

  • I don't see reason why you couldn't use sigmoid function
    Sigmoid function
    Range of sigmoid function is [0, 1]
    To modify sigmoid function to fit your needs, you can multiply it by 4, multiplying function by a constant affect it's amplitude ( Range = [0, 4] ),
    and than subtract 2, with subtracting / adding you can move function on Y-axis ( Range = [-2, 2] )
    So the function would look like this: S(t) = 4* ( 1 / (1 + e ^ (-t)) ) - 2