Radial Basis Functions: Code and Example links
Matlab
RBF Regression using k-means to find cluster centers.
RBFRegression.m: Very basic RBF code that uses k-means clustering for cluster centers.
edm.m: To compute the Euclidean Distance Matrix for the RBF.
Wine Classification Example using OLS
WineApp0.m: This is the main driver and uses the functions below.
conf_matrix.m: This has the confusion matrix code.
rbfOLS.m: This has the Orthogonal Least Squares code.
rebpredict.m: Used to get RBF output
Standard Scaler code.
TrainTestSplit.m
wineclassification.mat: Wine data
Python
RBF Regression using k-means to find cluster centers.
RBFRegression.py: Stand-alone file
Wine Classification Example using OLS
(Python file) OLS.py
This implements Orthogonal Least Squares for finding centers for the RBF. Keep this code in the same location as your driver function (below is an example)
WineApp0.py: Example driver for RBF using the wine data.
. This file needs OLS.py from the link above.