Class BrainScriptHelper


  • public class BrainScriptHelper
    extends Object
    TODO: What class does.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • BrainScriptHelper

        public BrainScriptHelper()
    • Method Detail

      • addParam

        public static String addParam​(String def,
                                      String params,
                                      boolean newLine)
        Adds the parameters to the definition.
        Parameters:
        def - the current definition
        params - the parameters to inject at the end
        newLine - if new line, no comma is inserted
        Returns:
        the updated definition
      • setOutDim

        public static String setOutDim​(String def,
                                       int outDim)
        Sets the output dimension for the layer.
        Parameters:
        def - the current layer definition
        outDim - the output dimension
        Returns:
        the updated definition
      • setOutDim

        public static String setOutDim​(String def,
                                       String outDim)
        Sets the output dimension for the layer.
        Parameters:
        def - the current layer definition
        outDim - the output dimension
        Returns:
        the updated definition