Documentation of 'org.encog.persist.EncogWriteHelper' Java class
EncogWriteHelper
org.encog.persist

Class EncogWriteHelper



  • public class EncogWriteHelper
    extends java.lang.Object
    Used to write an Encog EG/EGA file. EG files are used to hold Encog objects. EGA files are used to hold Encog Analyst scripts.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static char COMMA
      A comma char.
      static char QUOTE
      A quote char.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EncogWriteHelper(java.io.OutputStream stream)
      Construct the object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addColumn(ActivationFunction act) 
      void addColumn(boolean b)
      Add a boolean value as a column.
      void addColumn(double d)
      Add a column as a double.
      void addColumn(int i)
      Add a column as an integer.
      void addColumn(java.lang.String str)
      Add a column as a string.
      void addColumns(java.util.List<java.lang.String> cols)
      Add a list of string columns.
      void addLine(java.lang.String l)
      Add a line.
      void addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
      Add the specified properties.
      void addSection(java.lang.String str)
      Add a new section.
      void addSubSection(java.lang.String str)
      Add a new subsection.
      void flush()
      Flush the file.
      java.lang.String getCurrentSection() 
      void write(java.lang.String str)
      Write the specified string.
      void writeLine()
      Write the line.
      void writeProperty(java.lang.String name, ActivationFunction act)
      Write a property as an activation function.
      void writeProperty(java.lang.String name, boolean value)
      Write the property as a boolean.
      void writeProperty(java.lang.String name, CSVFormat csvFormat)
      Write a property as a CSV format.
      void writeProperty(java.lang.String name, double value)
      Write the property as a double.
      void writeProperty(java.lang.String name, double[] d)
      Write the property as a double array.
      void writeProperty(java.lang.String name, int value)
      Write a property as an int value.
      void writeProperty(java.lang.String name, int[] array)
      Write a property as an int array.
      void writeProperty(java.lang.String name, Matrix matrix)
      Write a matrix as a property.
      void writeProperty(java.lang.String name, java.lang.String value)
      Write the property a s string.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EncogWriteHelper

        public EncogWriteHelper(java.io.OutputStream stream)
        Construct the object.
        Parameters:
        stream - The stream to write to.
    • Method Detail

      • addColumn

        public final void addColumn(boolean b)
        Add a boolean value as a column.
        Parameters:
        b - The boolean value.
      • addColumn

        public final void addColumn(double d)
        Add a column as a double.
        Parameters:
        d - The double to add.
      • addColumn

        public final void addColumn(int i)
        Add a column as an integer.
        Parameters:
        i - The integer to add.
      • addColumn

        public final void addColumn(java.lang.String str)
        Add a column as a string.
        Parameters:
        str - The string to add.
      • addColumns

        public final void addColumns(java.util.List<java.lang.String> cols)
        Add a list of string columns.
        Parameters:
        cols - The columns to add.
      • addLine

        public final void addLine(java.lang.String l)
        Add a line.
        Parameters:
        l - The line to add.
      • addProperties

        public final void addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
        Add the specified properties.
        Parameters:
        properties - The properties.
      • addSection

        public final void addSection(java.lang.String str)
        Add a new section.
        Parameters:
        str - The section to add.
      • addSubSection

        public final void addSubSection(java.lang.String str)
        Add a new subsection.
        Parameters:
        str - The subsection.
      • flush

        public final void flush()
        Flush the file.
      • getCurrentSection

        public final java.lang.String getCurrentSection()
        Returns:
        The current section.
      • write

        public final void write(java.lang.String str)
        Write the specified string.
        Parameters:
        str - The string to write.
      • writeLine

        public final void writeLine()
        Write the line.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        ActivationFunction act)
        Write a property as an activation function.
        Parameters:
        name - The name of the property.
        act - The activation function.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        boolean value)
        Write the property as a boolean.
        Parameters:
        name - The name of the property.
        value - The boolean value.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        CSVFormat csvFormat)
        Write a property as a CSV format.
        Parameters:
        name - The name of the property.
        csvFormat - The format.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        double value)
        Write the property as a double.
        Parameters:
        name - The name of the property.
        value - The value.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        double[] d)
        Write the property as a double array.
        Parameters:
        name - The name of the property.
        d - The double value.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        int value)
        Write a property as an int value.
        Parameters:
        name - The name of the property.
        value - The int value.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        int[] array)
        Write a property as an int array.
        Parameters:
        name - The name of the property.
        array - The array.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        Matrix matrix)
        Write a matrix as a property.
        Parameters:
        name - The property name.
        matrix - The matrix.
      • writeProperty

        public final void writeProperty(java.lang.String name,
                                        java.lang.String value)
        Write the property a s string.
        Parameters:
        name - The name of the property.
        value - The value.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.