I would like to know how to change the type of radial basis function in newrbe and the number of hidden layer neurons
4 ビュー (過去 30 日間)
古いコメントを表示
Hi, the interpretation of newrbe as follow figure, but i can't understand how to change the type of radial basis function in newrbe and the number of hidden layer neurons. if you have answer, please tell me, thank you very much, have a nice day!
0 件のコメント
回答 (1 件)
Jaimin
2024 年 9 月 24 日
Hello @Yi Ma
You can use the “newrb” function instead of the “newrbe” function to modify the radial basis function and adjust the number of neurons in the hidden layer.
I have attached a code snippet to help you understand the “newrb” function better.
% Example data
P = [0 1 2 3 4 5]; % Input data
T = [0.5 1.0 1.5 2.0 2.5 3.0]; % Target data
% Parameters for newrb
goal = 0.0; % Mean squared error goal
spread = 1.0; % Spread of the radial basis functions
max_neurons = 10; % Maximum number of neurons
display_freq = 1; % Display frequency (set to 0 to turn off)
% Create the RBF network
net = newrb(P, T, goal, spread, max_neurons, display_freq);
% View the network
view(net);
You can refer to the following MathWorks documentation to learn more about the “newrb” function.
I hope this will be helpful.
2 件のコメント
Sam Chak
2024 年 9 月 24 日
I believe that @Yi Ma wants to use a custom radial basis function (RBF). The Deep Learning Toolbox uses the default Gaussian RBF. In addition to the widely used Gaussian RBF, the inverse quadratic and inverse multiquadric functions are also known to produce good results. @Yi Ma may want to test a novel RBF. Could you advise on how to achieve that?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!