org.joone.io
Class FileInputSynapse
java.lang.Object
org.joone.engine.Synapse
org.joone.io.StreamInputSynapse
org.joone.io.FileInputSynapse
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, InputSynapse, PlugInListener
public class FileInputSynapse
- extends StreamInputSynapse
Allows data to be presented to the network from a file. The file must contain
semi-colon seperated values e.g '2;5;7;2.1'.
- See Also:
- Serialized Form
Fields inherited from class org.joone.engine.Synapse |
array, b_pattern, bitems, bouts, count, enabled, fwdLock, inps, items, learnable, m_batch, m_pattern, myLearner, notFirstTime, notFirstTimeB, outs, revLock |
Method Summary |
java.util.TreeSet |
check()
Returns a TreeSet of errors or problems regarding the setup of this synapse. |
java.lang.String |
getFileName()
Deprecated. use getInputFile instead |
java.io.File |
getInputFile()
|
protected void |
initInputStream()
|
void |
setFileName(java.lang.String newFileName)
Deprecated. use setInputFile instead |
void |
setInputFile(java.io.File inputFile)
|
Methods inherited from class org.joone.io.StreamInputSynapse |
addPlugIn, addPlugInListener, backward, dataChanged, fireDataChanged, forward, fwdGet, fwdGet, getAdvancedColumnSelector, getAllPlugInListeners, getCurrentRow, getDecimalPoint, getFirstCol, getFirstRow, getInputPatterns, getInputVector, getLastCol, getLastRow, getMaxBufSize, getPlugIn, getStream, getTokens, gotoFirstLine, gotoLine, InspectableTitle, Inspections, isBuffered, isEOF, isStepCounter, numColumns, readAll, readObjectBase, removeAllPlugIns, removePlugInListener, reset, resetInput, revPut, setAdvancedColumnSelector, setArrays, setBuffered, setColList, setDecimalPoint, setDimensions, setEOF, setFirstCol, setFirstRow, setInputPatterns, setLastCol, setLastRow, setMaxBufSize, setPlugin, setPlugIn, setStepCounter, setTokens, writeObjectBase, zeroPattern |
Methods inherited from class org.joone.engine.Synapse |
addNoise, canCountSteps, fwdPut, getFwdLock, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getRevLock, getWeights, init, initLearner, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, readResolve, revGet, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setMonitor, setName, setOutputDimension, setOutputFull, setWeights |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInputSynapse
public FileInputSynapse()
getFileName
public java.lang.String getFileName()
- Deprecated. use getInputFile instead
- Gets the file name that this synapse uses to extract the input data from.
- Returns:
- The file name that this synapse uses to extract the input data from.
setFileName
public void setFileName(java.lang.String newFileName)
- Deprecated. use setInputFile instead
- Sets the file name that this synapse should extract data from.
- Parameters:
newFileName
- The file name that this synapse should extract data from.
initInputStream
protected void initInputStream()
throws JooneRuntimeException
- Specified by:
initInputStream
in class StreamInputSynapse
- Throws:
JooneRuntimeException
check
public java.util.TreeSet check()
- Returns a TreeSet of errors or problems regarding the setup of this synapse.
- Specified by:
check
in interface NeuralElement
- Overrides:
check
in class StreamInputSynapse
- Returns:
- A TreeSet of errors or problems regarding the setup of this synapse.
- See Also:
Synapse
getInputFile
public java.io.File getInputFile()
setInputFile
public void setInputFile(java.io.File inputFile)
Submit Feedback to pmarrone@users.sourceforge.net