You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Radial Basis Function Neural Network (RBFNN) #12322
Radial Basis Function Neural Networks (RBFNNs) are a type of neural network that combines elements of clustering and function approximation, making them powerful for both regression and classification tasks. RBFNNs can efficiently model non-linear relationships with fewer parameters than traditional multilayer perceptrons, thanks to their unique architecture that uses radial basis functions (typically Gaussian) in the hidden layer.
This structure allows RBFNNs to approximate functions and decision boundaries with high accuracy while maintaining a relatively simple network structure.
Goals:
Implement an RBFNN class with train and predict functionalities.
Use Gaussian radial basis functions as hidden layer activations.
Include KMeans clustering for initializing RBF centers and least-squares fitting for output weights.
Requirements:
Initialization: RBFNN class should initialize with num_centers and gamma for Gaussian spread.
Training: Add a train(x_data, y_data) method to:
Find RBF centers using KMeans.
Compute RBF activations for each input.
Calculate output weights through least-squares fitting.
Prediction: Implement a predict(x) method to calculate and return predictions based on learned weights.
If you are interested in resolving an open issue, simply make a pull request with your proposed fix. We do not assign issues in this repo so please do not ask for permission to work on an issue.
Do not create an issue to contribute an algorithm. Please submit a pull request instead.
Activity
Tahmid019 commentedon Oct 30, 2024
JeninaAngelin commentedon Oct 30, 2024
I've submitted a PR but some tests are not passed
Added the RBFNN as mentioned in the issue TheAlgorithms#12322
feat: add Radial Basis Function Neural Network implementation
cclauss commentedon Sep 6, 2026
https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md#issues
If you are interested in resolving an open issue, simply make a pull request with your proposed fix. We do not assign issues in this repo so please do not ask for permission to work on an issue.
Do not create an issue to contribute an algorithm. Please submit a pull request instead.