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!