org.neuroph.samples
Class RBFClassificationSample
- java.lang.Object
-
- org.neuroph.samples.RBFClassificationSample
-
- All Implemented Interfaces:
- java.util.EventListener, LearningEventListener
public class RBFClassificationSample extends java.lang.Object implements LearningEventListener
TODO: use k-nearest neighbour to tweak sigma
-
-
Constructor Summary
Constructors Constructor and Description RBFClassificationSample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidhandleLearningEvent(LearningEvent event)This method gets executed when LearningRule fires LearningEvent which some class is listening to.static voidmain(java.lang.String[] args)Runs this samplevoidrun()voidtestNeuralNetwork(NeuralNetwork neuralNet, DataSet testSet)Prints network output for the each element from the specified training set.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Runs this sample
-
run
public void run()
-
testNeuralNetwork
public void testNeuralNetwork(NeuralNetwork neuralNet, DataSet testSet)
Prints network output for the each element from the specified training set.- Parameters:
neuralNet- neural networktestSet- test data set
-
handleLearningEvent
public void handleLearningEvent(LearningEvent event)
Description copied from interface:LearningEventListenerThis method gets executed when LearningRule fires LearningEvent which some class is listening to. For example, if you want to print current iteration, error etc.- Specified by:
handleLearningEventin interfaceLearningEventListener- Parameters:
event- holds the information about event tha occured
-
-
DMelt 3.0 © DataMelt by jWork.ORG