I would like to know how to change the type of radial basis function in newrbe and the number of hidden layer neurons

3 Ansichten (letzte 30 Tage)
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!

Antworten (1)

Jaimin
Jaimin am 24 Sep. 2024
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 Kommentare
Yi Ma
Yi Ma am 24 Sep. 2024
thanks your answer, but if i still want to use "newrbe", whether there are some methods to konw the type of radial basis function and the number of hidden layer neurons. best wishes!
Sam Chak
Sam Chak am 24 Sep. 2024
Hi @Jaimin,
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?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by