org.shapelogic.machinelearning
Class FFNeuralNetworkWeightsParser

java.lang.Object
  extended by 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

Field Summary
protected  java.util.Scanner _scanner
           
static java.lang.String BLOCK_START
           
static java.lang.String FEATURES
           
protected  FFNeuralNetworkWeights nnWeights
           
static java.lang.String RESULTS
           
static java.lang.String WEIGHTS
           
 
Constructor Summary
FFNeuralNetworkWeightsParser()
           
 
Method Summary
protected  void blockStart()
           
protected  void features()
           
protected  java.io.Reader open(java.lang.String path)
          Opens URLs as well.
 FFNeuralNetworkWeights parse(java.io.Reader input)
           
 FFNeuralNetworkWeights parse(java.lang.String path)
           
protected  void results()
           
protected  boolean weights()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FFNeuralNetworkWeightsParser

public FFNeuralNetworkWeightsParser()
Method Detail

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.