concision_neural/params/types/aliases.rs
1/*
2 appellation: aliases <module>
3 authors: @FL03
4*/
5use crate::params::ModelParamsBase;
6use cnc::params::ParamsBase;
7use ndarray::{Ix2, OwnedRepr};
8
9/// A type alias for an owned representation of the [`ModelParamsBase`] generic of type `A`
10/// and the dimension `D`.
11pub type ModelParams<A, D, H> = ModelParamsBase<OwnedRepr<A>, D, H>;
12/// a type alias for an owned representation of the [`DeepParamsBase`] generic of type `A` and
13/// the dimension `D`.
14pub type DeepModelParams<A, D = Ix2> = DeepParamsBase<OwnedRepr<A>, D>;
15/// a type alias for a _deep_ representation of the [`ModelParamsBase`] using a vector of
16/// parameters as the hidden layers.
17pub type DeepParamsBase<S, D> = ModelParamsBase<S, D, Vec<ParamsBase<S, D>>>;
18
19/// a type alias for an owned representation of the [`DeepParamsBase`] generic of type `A` and
20/// the dimension `D`.
21pub type ShallowModelParams<A, D = Ix2> = ShallowParamsBase<OwnedRepr<A>, D>;
22/// a type alias for a _shallow_ representation of the [`ModelParamsBase`] using a single
23/// [`ParamsBase`] instance as the hidden layer.
24pub type ShallowParamsBase<S, D> = ModelParamsBase<S, D, ParamsBase<S, D>>;