LossFunctions
lamp.nn.LossFunctions
object LossFunctions
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LossFunctions.type
Members list
Type members
Classlikes
case class BCEWithLogits(posWeights: Option[STen], reduction: Reduction, ignore: Long) extends LossFunction
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
case object Identity extends LossFunction
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
- Self type
-
Identity.type
case object MSE extends LossFunction
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
- Self type
-
MSE.type
case class NLL(numClasses: Int, classWeights: STen, reduction: Reduction, ignore: Long) extends LossFunction
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
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
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
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
case class SmoothL1Loss(reduction: Reduction, beta: Double) extends LossFunction
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait LossFunctionclass Objecttrait Matchableclass AnyShow all
In this article