SequenceNLL

lamp.nn.LossFunctions$.SequenceNLL
case class SequenceNLL(numClasses: Int, classWeights: STen, ignore: Long) extends LossFunction

Return a loss function which takes outputs of time step x batch x classes and targets of time step x batch The returned loss is averaged over the batch and the time steps

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait LossFunction
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply[S : Sc](out: Variable, target: STen): (Variable, Long)

Returns the loss averaged over examples and the number of examples

Returns the loss averaged over examples and the number of examples

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product