pub struct CrfSgdConfig {
pub n_tags: usize,
pub n_features: usize,
pub n_epochs: usize,
pub lr: f64,
pub l2_reg: f64,
pub adagrad: bool,
}Expand description
Configuration for SGD/AdaGrad CRF training.
Fields§
Number of label tags.
n_features: usizeNumber of emission features per position.
n_epochs: usizeNumber of training epochs.
lr: f64Base learning rate.
l2_reg: f64L2 regularisation strength.
adagrad: boolWhether to use AdaGrad adaptive learning rates.
Trait Implementations§
Source§impl Clone for CrfSgdConfig
impl Clone for CrfSgdConfig
Source§fn clone(&self) -> CrfSgdConfig
fn clone(&self) -> CrfSgdConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CrfSgdConfig
impl RefUnwindSafe for CrfSgdConfig
impl Send for CrfSgdConfig
impl Sync for CrfSgdConfig
impl Unpin for CrfSgdConfig
impl UnsafeUnpin for CrfSgdConfig
impl UnwindSafe for CrfSgdConfig
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