org.neuroph.samples.segmentChallenge
Class SegmentChallengeSample
- java.lang.Object
-
- org.neuroph.samples.segmentChallenge.SegmentChallengeSample
-
- All Implemented Interfaces:
- java.util.EventListener, LearningEventListener
public class SegmentChallengeSample extends java.lang.Object implements LearningEventListener
-
-
Constructor Summary
Constructors Constructor and Description SegmentChallengeSample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringformatDecimalNumber(double number)java.lang.StringgetClasificationClass(int i)voidhandleLearningEvent(LearningEvent event)This method gets executed when LearningRule fires LearningEvent which some class is listening to.voidkeepScore(int prediction, int ideal)static voidmain(java.lang.String[] args)static intmaxOutput(double[] array)voidrun()voidtestNeuralNetwork(NeuralNetwork neuralNet, DataSet testSet)
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
- Parameters:
args- the command line arguments
-
run
public void run()
-
testNeuralNetwork
public void testNeuralNetwork(NeuralNetwork neuralNet, DataSet testSet)
-
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
-
maxOutput
public static int maxOutput(double[] array)
-
keepScore
public void keepScore(int prediction, int ideal)
-
formatDecimalNumber
public java.lang.String formatDecimalNumber(double number)
-
getClasificationClass
public java.lang.String getClasificationClass(int i)
-
-
DMelt 3.0 © DataMelt by jWork.ORG