com.sjm.machlearn.classifiers.neuralnets
Class BPFeatureVector

java.lang.Object
  |
  +--com.sjm.machlearn.util.MainClass
        |
        +--com.sjm.machlearn.classifiers.neuralnets.BPFeatureVector

public class BPFeatureVector
extends MainClass


Fields inherited from class com.sjm.machlearn.util.MainClass
debug, debug_level, debug_listeners
 
Constructor Summary
BPFeatureVector(DataSet ds, boolean remove_output)
           
BPFeatureVector(Example ex, boolean remove_output)
           
BPFeatureVector(FeatureIdList fid, boolean remove_output)
           
 
Method Summary
 double[][] convert(DataSet dataset)
           
 Example convert(double[] values)
          convert() : functions that convert between neural net inputs and Examples,DataSets,etc.
 double[] convert(Example example)
           
 double[][] getOutputValues(DataSet dataset)
          getOutpuValues() : gets the neural net output values from and example or dataset
 double[] getOutputValues(Example example)
           
 double getValue(Example example, int index)
          getValue() : get the neural net input for the example at the given index
 int size()
           
 
Methods inherited from class com.sjm.machlearn.util.MainClass
_internalError, _internalError, addDebugListener, debugMesg, debugMesg, debugMesg, debugMesg, debugMesg, debugMesg, debugOff, debugOn, internalError, internalError, setDebug, setDebugLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPFeatureVector

public BPFeatureVector(DataSet ds,
                       boolean remove_output)

BPFeatureVector

public BPFeatureVector(Example ex,
                       boolean remove_output)

BPFeatureVector

public BPFeatureVector(FeatureIdList fid,
                       boolean remove_output)
Method Detail

size

public int size()

convert

public Example convert(double[] values)
convert() : functions that convert between neural net inputs and Examples,DataSets,etc.

convert

public double[][] convert(DataSet dataset)

convert

public double[] convert(Example example)

getOutputValues

public double[][] getOutputValues(DataSet dataset)
getOutpuValues() : gets the neural net output values from and example or dataset

getOutputValues

public double[] getOutputValues(Example example)

getValue

public double getValue(Example example,
                       int index)
getValue() : get the neural net input for the example at the given index