Expand description
this module works to provide a common interface for storing sets of parameters within a
given model. The ModelParamsBase implementation generically captures the behavior of
parameter storage, relying on the ParamsBase instance to represent
individual layers within the network.
Modules§
Structs§
- Deep
Neural Network Store - Model
Features - The
ModelFeaturesprovides a common way of defining the layout of a model. This is used to define the number of input features, the number of hidden layers, the number of hidden features, and the number of output features. - Model
Layout - In contrast to the
ModelFeaturestype, theModelLayoutimplementation aims to provide a generic foundation for using type-based features / layouts within neural network. Our goal with this struct is to eventually push the implementation to the point of being able to sufficiently describe everything about a model’s layout (similar to what thendarraydevelopers have attained with theLayoutRef). - Model
Params Base - The
ModelParamsBaseobject is a generic container for storing the parameters of a neural network, regardless of the layout (e.g. shallow or deep). This is made possible through the introduction of a generic hidden layer type,H, that allows us to define aliases and additional traits for contraining the hidden layer type. Additionally, the structure enables the introduction of common accessors and initialization routines.
Enums§
- Deep
- Model
Format - The
ModelFormattype enumerates the various formats a neural network may take, either shallow or deep, providing a unified interface for accessing the number of hidden features and layers in the model. This is primarily used to generalize the allowed formats of a neural network without introducing any additional complexity with typing or other constructs. - Shallow
Traits§
- Deep
Model Repr - The
DeepModelReprtrait for deep neural networks - Into
Model Features - A trait that consumes the caller to create a new instance of
ModelFeaturesobject. - Layout
Ext - The
LayoutExttrait defines an interface for object capable of representing the layout; i.e. the number of input, hidden, and output features of a neural network model containing some number of hidden layers. - Network
Depth - The
NetworkDepthtrait is used to define the depth/kind of a neural network model. - RawHidden
- The
RawHiddentrait for compatible representations of hidden layers - RawModel
Layout - The
RawModelLayouttrait defines a minimal interface for objects capable of representing the layout; i.e. the number of input, hidden, and output features of a neural network model containing some number of hidden layers. - RawModel
Layout Mut - The
RawModelLayoutMuttrait defines a mutable interface for objects capable of representing the layout; i.e. the number of input, hidden, and output features of - Shallow
Model Repr - The
ShallowModelReprtrait for shallow neural networks
Type Aliases§
- Deep
Model Params - a type alias for an owned representation of the
DeepParamsBasegeneric of typeAand the dimensionD. - Deep
Params Base - a type alias for a deep representation of the
ModelParamsBaseusing a vector of parameters as the hidden layers. - Model
Params - A type alias for an owned representation of the
ModelParamsBasegeneric of typeAand the dimensionD. - Shallow
Model Params - a type alias for an owned representation of the
DeepParamsBasegeneric of typeAand the dimensionD. - Shallow
Params Base - a type alias for a shallow representation of the
ModelParamsBaseusing a singleParamsBaseinstance as the hidden layer.