Class SameDiffOutputLayer

    • Constructor Detail

      • SameDiffOutputLayer

        protected SameDiffOutputLayer()
    • Method Detail

      • activationsVertexName

        public abstract String activationsVertexName()
        Output layers should terminate in a single scalar value (i.e., a score) - however, sometimes the output activations (such as softmax probabilities) need to be returned. When this is the case, we need to know the name of the SDVariable that corresponds to these.
        If the final network activations are just the input to the layer, simply return "input"
        Returns:
        The name of the activations to return when performing forward pass
      • labelsRequired

        public boolean labelsRequired()
        Whether labels are required for calculating the score. Defaults to true - however, if the score can be calculated without labels (for example, in some output layers used for unsupervised learning) this can be set to false.
        Returns:
        True if labels are required to calculate the score/output, false otherwise.