Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Radial Basis Function Neural Network (RBFNN) #12322

Open
JeninaAngelin opened this issue Oct 29, 2024 · 2 comments
Open

Add Radial Basis Function Neural Network (RBFNN) #12322

JeninaAngelin opened this issue Oct 29, 2024 · 2 comments
Labels
enhancement This PR modified some existing files

Comments

@JeninaAngelin
Copy link

Feature description

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.
  • @JeninaAngelin JeninaAngelin added the enhancement This PR modified some existing files label Oct 29, 2024
    @Tahmid019
    Copy link

    I would like to contibute

    @JeninaAngelin
    Copy link
    Author

    I've submitted a PR but some tests are not passed

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    enhancement This PR modified some existing files
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants