I would like to know how to change the type of radial basis function in newrbe and the number of hidden layer neurons
2 次查看(过去 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!