com.marmoush.jann.sv
Class SvLayer

java.lang.Object
  extended by com.marmoush.jann.Layer
      extended by com.marmoush.jann.sv.SvLayer
All Implemented Interfaces:
IFillableLayer, ILayer, Serializable
Direct Known Subclasses:
LinearRegression

public class SvLayer
extends Layer

The Class SvLayer.

See Also:
Serialized Form

Constructor Summary
SvLayer()
          Instantiates a new sv layer.
SvLayer(int nInputs, int nNeurons, boolean biased)
          Instantiates a new sv layer.
 
Method Summary
 boolean equals(Object obj)
          Equals.
 DoubleMatrix getError()
          Gets the error.
 double getLearnRate()
          Gets the learn rate.
 double getPerformance()
          Gets the performance.
 IPerformance getPerformancefnctr()
          Gets the performancefnctr.
 DoubleMatrix getTarget()
          Gets the target.
 int hashCode()
          Hash code.
 void setError(DoubleMatrix error)
          Sets the error.
 void setLearnRate(double lrnRate)
          Sets the learn rate.
 void setPerformance(double performance)
          Sets the performance.
 void setPerformancefnctr(IPerformance performancefnctr)
          Sets the performancefnctr.
 void setTarget(DoubleMatrix target)
          Sets the target.
 void simulate()
          Simulate.
 String toString()
          To string.
 DoubleMatrix updateError()
          Update error.
 double updatePerformance()
          Update performance.
 
Methods inherited from class com.marmoush.jann.Layer
getBias, getInput, getNetSum, getOutput, getTheta, getTransfereFnctr, getWeight, getWeightFnctr, isBiased, isInputOnlyLayer, setBias, setBiased, setFill, setFillRandom, setFillRandomFloor, setFillRandomMinMax, setFillRandomMinMaxFloor, setInput, setInputOnlyLayer, setNetSum, setOutput, setTheta, setTransfereFnctr, setWeight, setWeightFnctr, updateNetSum, updateOutput
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SvLayer

public SvLayer()
Instantiates a new sv layer.


SvLayer

public SvLayer(int nInputs,
               int nNeurons,
               boolean biased)
Instantiates a new sv layer.

Parameters:
nInputs - the n inputs
nNeurons - the n neurons
Method Detail

equals

public boolean equals(Object obj)
Description copied from interface: ILayer
Equals.

Specified by:
equals in interface ILayer
Overrides:
equals in class Layer
Parameters:
obj - the obj
Returns:
true, if successful

getError

public DoubleMatrix getError()
Gets the error.

Returns:
the error

getLearnRate

public double getLearnRate()
Gets the learn rate.

Returns:
the learn rate

getPerformance

public double getPerformance()
Gets the performance.

Returns:
the performance

getPerformancefnctr

public IPerformance getPerformancefnctr()
Gets the performancefnctr.

Returns:
the performancefnctr

getTarget

public DoubleMatrix getTarget()
Gets the target.

Returns:
the target

hashCode

public int hashCode()
Description copied from interface: ILayer
Hash code.

Specified by:
hashCode in interface ILayer
Overrides:
hashCode in class Layer
Returns:
the int

setError

public void setError(DoubleMatrix error)
Sets the error.

Parameters:
error - the new error

setLearnRate

public void setLearnRate(double lrnRate)
Sets the learn rate.

Parameters:
lrnRate - the new learn rate

setPerformance

public void setPerformance(double performance)
Sets the performance.

Parameters:
performance - the new performance

setPerformancefnctr

public void setPerformancefnctr(IPerformance performancefnctr)
Sets the performancefnctr.

Parameters:
performancefnctr - the new performancefnctr

setTarget

public void setTarget(DoubleMatrix target)
Sets the target.

Parameters:
target - the new target

simulate

public void simulate()
Description copied from interface: ILayer
Simulate.

Specified by:
simulate in interface ILayer
Overrides:
simulate in class Layer

toString

public String toString()
Description copied from interface: ILayer
To string.

Specified by:
toString in interface ILayer
Overrides:
toString in class Layer
Returns:
the string

updateError

public DoubleMatrix updateError()
Update error.

Returns:
the double matrix

updatePerformance

public double updatePerformance()
Update performance.

Returns:
the double


Copyright © 2011-2012 Marmoush.com. All Rights Reserved.