pub struct GraphCrfConfig {
pub n_nodes: usize,
pub n_labels: usize,
pub max_iter: usize,
pub tol: f64,
pub damping: f64,
}Expand description
Configuration for the general-graph CRF.
Fields§
§n_nodes: usizeNumber of variable nodes in the graph.
n_labels: usizeNumber of labels per node.
max_iter: usizeMaximum BP iterations.
tol: f64Convergence tolerance (max absolute message change).
damping: f64Damping factor ∈ [0,1): new_msg = (1-damp)new + dampold.
Trait Implementations§
Source§impl Clone for GraphCrfConfig
impl Clone for GraphCrfConfig
Source§fn clone(&self) -> GraphCrfConfig
fn clone(&self) -> GraphCrfConfig
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 GraphCrfConfig
impl RefUnwindSafe for GraphCrfConfig
impl Send for GraphCrfConfig
impl Sync for GraphCrfConfig
impl Unpin for GraphCrfConfig
impl UnsafeUnpin for GraphCrfConfig
impl UnwindSafe for GraphCrfConfig
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