org.neuroph.contrib.graphml
Class ExampleNetworXOR
- java.lang.Object
-
- org.neuroph.contrib.graphml.ExampleNetworXOR
-
public class ExampleNetworXOR extends java.lang.ObjectApproximate XOR gate using a multilayer percepton with 2 inputs, 3 hidden neurons and 1 output. The example is adapted from http://neuroph.sourceforge.net/tutorials/MultiLayerPerceptron.html
-
-
Constructor Summary
Constructors Constructor and Description ExampleNetworXOR()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static MultiLayerPerceptrongetNetwork()Returns multilayer percepton learned to approximate the XOR gate.static DataSetgetTrainingData()Training data with two input neurons.
-
-
-
Method Detail
-
getTrainingData
public static DataSet getTrainingData()
Training data with two input neurons. Truth: 0,0: 0 0,1: 1 1,0: 1 1,1: 0
-
getNetwork
public static MultiLayerPerceptron getNetwork()
Returns multilayer percepton learned to approximate the XOR gate.- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG