How can I change the 'radbas' transferFcn ?
Mostra commenti meno recenti
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 Commento
Star Strider
il 23 Dic 2016
Neural network transfer functions are only defined in 2D.
Risposta accettata
Più risposte (1)
John BG
il 22 Dic 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 Commento
Nikos Vasileiadis
il 22 Dic 2016
Categorie
Scopri di più su Define Shallow Neural Network Architectures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



