MLP

lamp.nn.MLP$
object MLP

Factory for multilayer fully connected feed forward networks

Returned network has the following repeated structure: [linear -> batchnorm -> nonlinearity -> dropout]*

The last block does not include the nonlinearity and the dropout.

Value parameters

dropout

dropout applied to each block

hidden

list of hidden dimensions

in

input dimensions

out

output dimensions

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MLP.type

Members list

Type members

Classlikes

sealed trait ActivationFunction

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Gelu.type
object HardSwish.type
object Relu.type
object Sigmoid.type
object Swish1.type
case object Gelu extends ActivationFunction

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Gelu.type
case object HardSwish extends ActivationFunction

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
HardSwish.type
object NormType

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
NormType.type
sealed trait NormType

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BatchNorm.type
object LayerNorm.type
object NoNorm.type
case object Relu extends ActivationFunction

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Relu.type
case object Sigmoid extends ActivationFunction

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Sigmoid.type
case object Swish1 extends ActivationFunction

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Swish1.type