Skip to content

davidleejy/Radial-Basis-Function-Networks

Repository files navigation

Radial Basis Function Networks (RBFN)

Introduction

This RBFN attempts to approximate the following function:

func no noise

The training set is constructed by dividing the range [-1,1] with steps of 0.05. The test set is constructed by dividing the range [-1,1] with steps of 0.01. The training set is corrupted by random noise as follows. func noisy

The random noise n(i) is Gaussion with 0 mean and standard deviation of 1.

Contents

  • RBFN_exact_interpolation_method.m trains and tests an RBFN constructed using the Exact Interpolation method. The Radial Basis Function (RBF) is gaussian with standard deviation of 0.1 : gaussian rbf where sigma = 0.1. The resulting plot with test results in red and desired results in blue:

eim results

  • RBFN_exact_interpolation_method_with_regularization.m trains and tests an RBFN constructed using the Exact Interpolation method with regularization factor 0.5. The Radial Basis Function (RBF) is gaussian with standard deviation of 0.1.

eimwr results

  • RBFN_Fixed_Centers_Selected_at_Random.m trains and tests an RBFN constructed using the Fixed Centers Selected at Random method. The number of centers is set to be 15. 15 centroids from K-means clustering (K:=15) of training data are used as centers. The Radial Basis Function (RBF) is:

        fcsr rbf

        where mu_i is the i-th fixed center and sigma_i is:

        d_max

        where d_max is the maximum distance between the chosen centers.

        fcsr results

  • RBFN_Fixed_Centers_Selected_at_Random_with_regularization.m trains and tests an RBFN constructed using the Fixed Centers Selected at Random method with various regularization factors. A graph of Mean Squared Error (MSE) against regularization factor is plotted. When the random number generator is seeded with 20, the minimum MSE obtained is 0.041085. This is achieved with 0.025 regularization factor. Only seeds 12, 15, 20 out of seeds 1 to 20 result in noise that gives an improved MSE with non-zero regularization factor. The design parameters are similar to RBFN_Fixed_Centers_Selected_at_Random.m. mse vs reg

Running

Run these .m files like how you would regular MATLAB .m files. These .m files were developed on MATLAB R2012a.

Keywords

Radial Basis Function Networks, RBFN, Artificial Neural Networks, ANN, MATLAB

Acknowledgments

These codes were implemented in fulfilment of an assignment (EE5904R Neural Networks Homework #3) from the National University of Singapore (NUS). I do not take credit for the creation of this assignment. I wrote these codes, not the assignment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages