How to use a custom transfer function in neural net training

Illustration
bob_marley - 2021-07-06T10:16:49+00:00
Question: How to use a custom transfer function in neural net training

I want to use a function similar to tansig. I don't seem to be able to find a good example, and the tansig.apply method only allows me one line! I'm wrapped around this axle, and I suspect I'm missing something simple. Any ideas? I'm using 2012b.  

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

I cannot make sense of your post.
 
 
tanh(x) = tansig(x)

elliotsig(4*x) ~ tansig(x)

elliotsig4(x) ~ tansig(x)

function y = elliotsig4(x)

      y = x./(0.25 + abs(x));

end
What do you mean by the tansig.apply method ???
 
Sample code would help explain.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!