How can I change the 'radbas' transferFcn ?
Ältere Kommentare anzeigen
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 Kommentar
Star Strider
am 23 Dez. 2016
Neural network transfer functions are only defined in 2D.
Akzeptierte Antwort
Weitere Antworten (1)
John BG
am 22 Dez. 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 Kommentar
Nikos Vasileiadis
am 22 Dez. 2016
Kategorien
Mehr zu Define Shallow Neural Network Architectures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



