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

class Object
trait Matchable
class Any
MLP.type

Type members

Classlikes

sealed trait ActivationFunction
case object Gelu extends ActivationFunction
case object HardSwish extends ActivationFunction
object NormType
Companion:
class
sealed trait NormType
Companion:
object
case object Relu extends ActivationFunction
case object Sigmoid extends ActivationFunction
case object Swish1 extends ActivationFunction