Class LinearCollection.Builder

    • Method Detail

      • setUnits

        public LinearCollection.Builder setUnits​(long units)
        Sets the number of output channels.
        Parameters:
        units - the number of desired output channels
        Returns:
        this Builder
      • optBias

        public LinearCollection.Builder optBias​(boolean bias)
        Sets the optional parameter that indicates whether to include a bias vector with default value of true.
        Parameters:
        bias - whether to use a bias vector parameter
        Returns:
        this Builder
      • build

        public LinearCollection build()
        Returns the constructed Linear.
        Returns:
        the constructed Linear
        Throws:
        java.lang.IllegalArgumentException - if all required parameters (outChannels) have not been set