Interface TrainingConfig

    • Method Detail

      • getLayerName

        String getLayerName()
        Returns:
        Name of the layer
      • getRegularizationByParam

        List<Regularization> getRegularizationByParam​(String paramName)
        Get the regularization types (l1/l2/weight decay) for the given parameter. Different parameters may have different regularization types.
        Parameters:
        paramName - Parameter name ("W", "b" etc)
        Returns:
        Regularization types (if any) for the specified parameter
      • isPretrainParam

        boolean isPretrainParam​(String paramName)
        Is the specified parameter a layerwise pretraining only parameter?
        For example, visible bias params in an autoencoder (or, decoder params in a variational autoencoder) aren't used during supervised backprop.
        Layers (like DenseLayer, etc) with no pretrainable parameters will return false for all (valid) inputs.
        Parameters:
        paramName - Parameter name/key
        Returns:
        True if the parameter is for layerwise pretraining only, false otherwise
      • getUpdaterByParam

        IUpdater getUpdaterByParam​(String paramName)
        Get the updater for the given parameter. Typically the same updater will be used for all updaters, but this is not necessarily the case
        Parameters:
        paramName - Parameter name
        Returns:
        IUpdater for the parameter
      • getGradientNormalization

        GradientNormalization getGradientNormalization()
        Returns:
        The gradient normalization configuration
      • getGradientNormalizationThreshold

        double getGradientNormalizationThreshold()
        Returns:
        The gradient normalization threshold
      • setDataType

        void setDataType​(DataType dataType)