Trait dahl_salso::optimize::GeneralLossComputer [−][src]
pub trait GeneralLossComputer { fn expected_loss_kernel(&self) -> f64; fn speculative_add(
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64; fn new_subset(&mut self, partition: &mut Partition); fn add_with_index(
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
); fn remove(&mut self, partition: &mut Partition, i: usize) -> LabelType; }
Required methods
fn expected_loss_kernel(&self) -> f64
[src]
fn speculative_add(
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
[src]
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
fn new_subset(&mut self, partition: &mut Partition)
[src]
fn add_with_index(
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
[src]
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
fn remove(&mut self, partition: &mut Partition, i: usize) -> LabelType
[src]
Implementors
impl<'a> GeneralLossComputer for BinderGLossComputer<'a>
[src]
impl<'a> GeneralLossComputer for BinderGLossComputer<'a>
[src]fn expected_loss_kernel(&self) -> f64
[src]
fn speculative_add(
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
[src]
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
fn new_subset(&mut self, partition: &mut Partition)
[src]
fn add_with_index(
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
[src]
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
fn remove(&mut self, partition: &mut Partition, i: usize) -> LabelType
[src]
impl<'a> GeneralLossComputer for OMARIApproxGLossComputer<'a>
[src]
impl<'a> GeneralLossComputer for OMARIApproxGLossComputer<'a>
[src]fn expected_loss_kernel(&self) -> f64
[src]
fn speculative_add(
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
[src]
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
fn new_subset(&mut self, partition: &mut Partition)
[src]
fn add_with_index(
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
[src]
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
fn remove(&mut self, partition: &mut Partition, i: usize) -> LabelType
[src]
impl<'a> GeneralLossComputer for VILBGLossComputer<'a>
[src]
impl<'a> GeneralLossComputer for VILBGLossComputer<'a>
[src]fn expected_loss_kernel(&self) -> f64
[src]
fn speculative_add(
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
[src]
&mut self,
partition: &Partition,
i: usize,
subset_index: LabelType
) -> f64
fn new_subset(&mut self, partition: &mut Partition)
[src]
fn add_with_index(
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)
[src]
&mut self,
partition: &mut Partition,
i: usize,
subset_index: LabelType
)