I want to create a neural network with tensorflow js just for learning purposes. It should determine if the input is odd or even and I think that can not be achieved with sigmoid or linear activations.
Is there a sin or cos function which is available in tf or if not, how to create a custom activation function?