pub struct MlpParameters {
pub hidden: Vec<usize>,
pub activation: Activation,
pub learning_rate: f64,
pub epochs: usize,
pub batch_size: usize,
pub weight_decay: f64,
pub seed: u64,
}Expand description
Network shape and training settings.
Fields§
Sizes of the hidden layers.
activation: Activation§learning_rate: f64§epochs: usize§batch_size: usize§weight_decay: f64L2 penalty λ/2 Σ w² on the weights (not the biases).
seed: u64Trait Implementations§
Source§impl Clone for MlpParameters
impl Clone for MlpParameters
Source§impl Debug for MlpParameters
impl Debug for MlpParameters
Auto Trait Implementations§
impl Freeze for MlpParameters
impl RefUnwindSafe for MlpParameters
impl Send for MlpParameters
impl Sync for MlpParameters
impl Unpin for MlpParameters
impl UnsafeUnpin for MlpParameters
impl UnwindSafe for MlpParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more