org.encog.examples.neural.persist
Class Serial

java.lang.Object
  extended by org.encog.examples.neural.persist.Serial

public class Serial
extends Object

This example shows how to use Java serialization to store a neural network. This file is not cross platform and cannot be shared with Encog C#. Additionally future versions of Encog may not be compatable with this file.


Field Summary
static String FILENAME
           
static double[][] XOR_IDEAL
           
static double[][] XOR_INPUT
           
 
Constructor Summary
Serial()
           
 
Method Summary
 void loadAndEvaluate()
           
static void main(String[] args)
           
 void trainAndSave()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME

public static final String FILENAME
See Also:
Constant Field Values

XOR_INPUT

public static double[][] XOR_INPUT

XOR_IDEAL

public static double[][] XOR_IDEAL
Constructor Detail

Serial

public Serial()
Method Detail

trainAndSave

public void trainAndSave()
                  throws IOException
Throws:
IOException

loadAndEvaluate

public void loadAndEvaluate()
                     throws IOException,
                            ClassNotFoundException
Throws:
IOException
ClassNotFoundException

main

public static void main(String[] args)


Copyright © 2011. All Rights Reserved.