How can I change the 'radbas' transferFcn ?
Mostrar comentarios más antiguos
I want to do a 2D interpolation with a feedforward neural net in Matlab and I choose to use a radial bade transfer function on the neurons of the hidden layer. The problem is that the radbas function gives a hyperplane like figure 1 and I want a hyperplane more like figure 2. out=exp(-(x-x0)^2/2 + (y-y0)^2/2);
What should I do?


In other words I want each neuron creates and shift a bell shaped (hyper)plane along my 2D input space.
1 comentario
Star Strider
el 23 de Dic. de 2016
Neural network transfer functions are only defined in 2D.
Respuesta aceptada
Más respuestas (1)
John BG
el 22 de Dic. de 2016
you probably missed using the coordinates out of meshgrid rather than the ranges x and y.
Try adding
[X,Y]=meshgrid(-3:.01:3)
then have your function working on X and Y rather than x and y:
Z=exp(-(X-x0)^2/2 + (Y-y0)^2/2);
and check
C=gradient(Z)
figure;
mesh(X,Y,Z,C)
if you find my answer useful would you please mark it as Accepted Answer by clicking on the ACCEPT ANSWER button?
thanks in advance for time and attention
John BG
1 comentario
Nikos Vasileiadis
el 22 de Dic. de 2016
Categorías
Más información sobre Define Shallow Neural Network Architectures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



