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

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product