org.vizzini.ai.neuralnetwork.layer
Class BinaryEncodeLayer

java.lang.Object
  extended by org.vizzini.util.AbstractBean
      extended by org.vizzini.ai.neuralnetwork.layer.AbstractLayer
          extended by org.vizzini.ai.neuralnetwork.layer.BinaryEncodeLayer
All Implemented Interfaces:
Cloneable, ILayer

public class BinaryEncodeLayer
extends AbstractLayer

Provides a layer which performs binary encoding. The input node values are encoded as output binaries. A bias node is not used.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from class org.vizzini.util.AbstractBean
IGNORE_PROPERTIES
 
Constructor Summary
BinaryEncodeLayer()
          Construct this object.
BinaryEncodeLayer(String name, BinaryEncoder[] encoders)
          Construct this object with the given parameters.
 
Method Summary
 double[] evaluate(double[] inputs)
          Apply the given inputs and return the output of the layer.
protected  BinaryEncoder[] getEncoders()
           
protected  void setEncoders(BinaryEncoder[] encoders)
          Set the encoders.
 
Methods inherited from class org.vizzini.ai.neuralnetwork.layer.AbstractLayer
clear, clearInputs, clearOutputs, clone, equals, getActivationFunction, getInput, getInputCount, getInputs, getMaxValueIndex, getName, getOutput, getOutputCount, getOutputs, hashCode, init, setActivationFunction, setInput, setInputCount, setInputs, setName, setOutput, setOutputCount, setOutputs, toDetailString, toString
 
Methods inherited from class org.vizzini.util.AbstractBean
appendArray, appendCollection, appendList, appendMap, compareBooleans, compareObjects, getIgnoreProperties
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryEncodeLayer

public BinaryEncodeLayer()
Construct this object.

Since:
v0.3

BinaryEncodeLayer

public BinaryEncodeLayer(String name,
                         BinaryEncoder[] encoders)
Construct this object with the given parameters.

Parameters:
name - Name.
encoders - Encoders.
Since:
v0.3
Method Detail

evaluate

public double[] evaluate(double[] inputs)
Apply the given inputs and return the output of the layer.

Parameters:
inputs - Node input values.
Since:
v0.3

getEncoders

protected BinaryEncoder[] getEncoders()
Returns:
Return encoders.

setEncoders

protected void setEncoders(BinaryEncoder[] encoders)
Set the encoders. As a side effect, this method resizes the outputs.

Parameters:
encoders - the encoders to set


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02