synapse-0.1.0.0: Synapse is a machine learning library written in pure Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Synapse.NN.Layers.Dense

Description

Provides dense layer implementation.

Dense datatype represents densely-connected neural network layer and it performs following operation: x matMul w + b, where w is weights and b is bias (if present) of a layer.

Synopsis

Dense datatype

data Dense a Source #

Dense datatype represents densely-connected neural network layer.

Dense performs following operation: x matMul w + b, where w is weights and b is bias (if present) of a layer.

Constructors

Dense 

Fields

Instances

Instances details
AbstractLayer Dense Source # 
Instance details

Defined in Synapse.NN.Layers.Dense

type DType (Dense a) Source # 
Instance details

Defined in Synapse.NN.Layers.Dense

type DType (Dense a) = a

layerDenseWith Source #

Arguments

:: Symbolic a 
=> (Initializer a, Constraint a, Regularizer a)

Weights initializer, constraint and regularizer.

-> (Initializer a, Constraint a, Regularizer a)

Bias initializer, constraint and regularizer.

-> Int

Amount of neurons.

-> LayerConfiguration (Dense a) 

Creates configuration of dense layer.

layerDense :: Symbolic a => Int -> LayerConfiguration (Dense a) Source #

Creates default configuration of dense layer - no constraints and weight are initialized with ones, bias is initialized with zeroes.