Class BaseLayer

    • Field Detail

      • biasInit

        protected double biasInit
      • gainInit

        protected double gainInit
      • biasUpdater

        protected IUpdater biasUpdater
      • gradientNormalizationThreshold

        protected double gradientNormalizationThreshold
    • Method Detail

      • resetLayerDefaultConfig

        public void resetLayerDefaultConfig()
        Reset the learning related configs of the layer to default. When instantiated with a global neural network configuration the parameters specified in the neural network configuration will be used. For internal use with the transfer learning API. Users should not have to call this method directly.
        Overrides:
        resetLayerDefaultConfig in class Layer
      • getUpdaterByParam

        public 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
        Specified by:
        getUpdaterByParam in interface TrainingConfig
        Overrides:
        getUpdaterByParam in class Layer
        Parameters:
        paramName - Parameter name
        Returns:
        IUpdater for the parameter
      • getRegularizationByParam

        public List<Regularization> getRegularizationByParam​(String paramName)
        Description copied from class: Layer
        Get the regularization types (l1/l2/weight decay) for the given parameter. Different parameters may have different regularization types.
        Specified by:
        getRegularizationByParam in interface TrainingConfig
        Specified by:
        getRegularizationByParam in class Layer
        Parameters:
        paramName - Parameter name ("W", "b" etc)
        Returns:
        Regularization types (if any) for the specified parameter