org.shapelogic.machinelearning
Class FFNeuralNetworkWeightsParser
java.lang.Object
org.shapelogic.machinelearning.FFNeuralNetworkWeightsParser
public class FFNeuralNetworkWeightsParser
- extends java.lang.Object
FFNeuralNetworkWeightsParser parses FFNeuralNetworkWeights.
syntax:
BLOCK_START
"FEATURES"
string +
BLOCK_START
"RESULTS"
string +
BLOCK_START
("WEIGHTS" number + BLOCK_START ) *
"WEIGHTS" number
- Author:
- Sami Badawi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_START
public static final java.lang.String BLOCK_START
- See Also:
- Constant Field Values
FEATURES
public static final java.lang.String FEATURES
- See Also:
- Constant Field Values
RESULTS
public static final java.lang.String RESULTS
- See Also:
- Constant Field Values
WEIGHTS
public static final java.lang.String WEIGHTS
- See Also:
- Constant Field Values
_scanner
protected java.util.Scanner _scanner
nnWeights
protected FFNeuralNetworkWeights nnWeights
FFNeuralNetworkWeightsParser
public FFNeuralNetworkWeightsParser()
parse
public FFNeuralNetworkWeights parse(java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
open
protected java.io.Reader open(java.lang.String path)
throws java.lang.Exception
- Opens URLs as well.
- Throws:
java.lang.Exception
parse
public FFNeuralNetworkWeights parse(java.io.Reader input)
throws com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException
- Throws:
com.sun.org.apache.xerces.internal.impl.xpath.regex.ParseException
blockStart
protected void blockStart()
features
protected void features()
results
protected void results()
weights
protected boolean weights()
Copyright © 2009. All Rights Reserved.