Skip to content

Eloypripan/rbf_keras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rbf_keras

RBF layer for Keras

You need rbflayer.py to use RBF layers in keras. See test.py for very simple example.

Feel free to use or modify the code.

Usage:

  # creating RBF network
  rbflayer = RBFLayer(10,
                      initializer=InitCentersRandom(X),
                      betas=2.0,
                      input_shape=(num_inputs,))

  model = Sequential()
  model.add(rbflayer)
  model.add(Dense(n_outputs))

or using KMeans clustering for RBF centers

  # creating RBFLayer with centers found by KMeans clustering
  rbflayer = RBFLayer(10,
                      initializer=InitCentersKMeans(X),
                      betas=2.0,
                      input_shape=(num_inputs,))

Hint how to implement different radii for different dimensions: #1

About

RBF layer for Keras

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%