Class TrainingParameters


  • public class TrainingParameters
    extends Object
    • Method Detail

      • algorithm

        public String algorithm​(String namespace)
        Retrieves the training algorithm name for a given name space.
        Returns:
        the name or null if not set.
      • algorithm

        public String algorithm()
        Retrieves the training algorithm name.
        Returns:
        the name or null if not set.
      • getSettings

        public Map<String,​String> getSettings​(String namespace)
        Deprecated.
        Retrieves a map with the training parameters which have the passed name space.
        Parameters:
        namespace -
        Returns:
        a parameter map which can be passed to the train and validate methods.
      • getSettings

        public Map<String,​String> getSettings()
        Deprecated.
        Retrieves all parameters without a name space.
        Returns:
        the settings map
      • getObjectSettings

        public Map<String,​Object> getObjectSettings​(String namespace)
        Retrieves a map with the training parameters which have the passed name space.
        Parameters:
        namespace -
        Returns:
        a parameter map which can be passed to the train and validate methods.
      • getObjectSettings

        public Map<String,​Object> getObjectSettings()
        Retrieves all parameters without a name space.
        Returns:
        the settings map
      • putIfAbsent

        public void putIfAbsent​(String key,
                                String value)
      • putIfAbsent

        public void putIfAbsent​(String namespace,
                                String key,
                                int value)
      • putIfAbsent

        public void putIfAbsent​(String key,
                                int value)
      • putIfAbsent

        public void putIfAbsent​(String namespace,
                                String key,
                                double value)
      • putIfAbsent

        public void putIfAbsent​(String key,
                                double value)
      • putIfAbsent

        public void putIfAbsent​(String namespace,
                                String key,
                                boolean value)
      • putIfAbsent

        public void putIfAbsent​(String key,
                                boolean value)
      • put

        public void put​(String namespace,
                        String key,
                        int value)
      • put

        public void put​(String key,
                        int value)
      • put

        public void put​(String namespace,
                        String key,
                        double value)
      • put

        public void put​(String key,
                        double value)
      • put

        public void put​(String namespace,
                        String key,
                        boolean value)
      • put

        public void put​(String key,
                        boolean value)
      • getStringParameter

        public String getStringParameter​(String key,
                                         String defaultValue)
        get a String parameter. ClassCastException can be thrown if the value is not String
        Parameters:
        key -
        defaultValue -
        Returns:
      • getStringParameter

        public String getStringParameter​(String namespace,
                                         String key,
                                         String defaultValue)
        get a String parameter in the specified namespace. ClassCastException can be thrown if the value is not String
        Parameters:
        namespace -
        key -
        defaultValue -
        Returns:
      • getIntParameter

        public int getIntParameter​(String key,
                                   int defaultValue)
        get an Integer parameter
        Parameters:
        key -
        defaultValue -
        Returns:
      • getIntParameter

        public int getIntParameter​(String namespace,
                                   String key,
                                   int defaultValue)
        get an Integer parameter in the specified namespace
        Parameters:
        namespace -
        key -
        defaultValue -
        Returns:
      • getDoubleParameter

        public double getDoubleParameter​(String key,
                                         double defaultValue)
        get a Double parameter
        Parameters:
        key -
        defaultValue -
        Returns:
      • getDoubleParameter

        public double getDoubleParameter​(String namespace,
                                         String key,
                                         double defaultValue)
        get a Double parameter in the specified namespace
        Parameters:
        namespace -
        key -
        defaultValue -
        Returns:
      • getBooleanParameter

        public boolean getBooleanParameter​(String key,
                                           boolean defaultValue)
        get a Boolean parameter
        Parameters:
        key -
        defaultValue -
        Returns:
      • getBooleanParameter

        public boolean getBooleanParameter​(String namespace,
                                           String key,
                                           boolean defaultValue)
        get a Boolean parameter in the specified namespace
        Parameters:
        namespace -
        key -
        defaultValue -
        Returns: