Enum UIListener.HistogramType

  • All Implemented Interfaces:
    Serializable, Comparable<UIListener.HistogramType>
    Enclosing class:
    UIListener

    public static enum UIListener.HistogramType
    extends Enum<UIListener.HistogramType>
    Used to specify which histograms should be collected. Histogram collection is disabled by default, but can be enabled via UIListener.Builder.histograms(int, HistogramType...). Note that multiple histogram types may be collected simultaneously.
    Histograms may be collected for:
    PARAMETERS: All trainable parameters
    PARAMETER_GRADIENTS: Gradients corresponding to the trainable parameters
    PARAMETER_UPDATES: All trainable parameter updates, before they are applied during training (updates are gradients after applying updater and learning rate etc)
    ACTIVATIONS: Activations - ARRAY type SDVariables - those that are not constants, variables or placeholders
    ACTIVATION_GRADIENTS: Activation gradients
    • Method Detail

      • values

        public static UIListener.HistogramType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UIListener.HistogramType c : UIListener.HistogramType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UIListener.HistogramType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null