How can I change the 'radbas' transferFcn ?
古いコメントを表示
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 件のコメント
Star Strider
2016 年 12 月 23 日
Neural network transfer functions are only defined in 2D.
採用された回答
その他の回答 (1 件)
John BG
2016 年 12 月 22 日
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
カテゴリ
ヘルプ センター および File Exchange で Define Shallow Neural Network Architectures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



