Packages

class Softmax extends AnyRef

Softmax class calculate softmax regularization for the input

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Softmax
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Softmax()

Value Members

  1. def diff(input: VectoD, index: Int): VectoD

    Calculate the difference by first predict the input and deduct the position of index.

    Calculate the difference by first predict the input and deduct the position of index.

    input

    the data input

    index

    class labels for input

  2. def loss(input: VectoD, index: Int): Double

    Calculate loss between the vector input and the label index.

    Calculate loss between the vector input and the label index.

    input

    the data input

    index

    class labels for input

  3. def predict(input: VectoD): VectoD

    Calculate softmax for the input.

    Calculate softmax for the input.

    input

    the vector input for softmax (vector sum = 1)