pub enum GenericConTree {
Normal(ConTree),
LDS(ConTreeLds),
}Expand description
Either search behind one interface, chosen at run time.
Variants§
Implementations§
Source§impl GenericConTree
impl GenericConTree
Sourcepub fn new(
min_sup: usize,
max_depth: usize,
max_time: f64,
max_error: usize,
split_selection_strategy: PointSelector,
max_gap: usize,
use_heuristic: bool,
fast_d2: bool,
use_lds: bool,
) -> Self
pub fn new( min_sup: usize, max_depth: usize, max_time: f64, max_error: usize, split_selection_strategy: PointSelector, max_gap: usize, use_heuristic: bool, fast_d2: bool, use_lds: bool, ) -> Self
Builds the anytime search when use_lds is set, the exhaustive one
otherwise. The other arguments are those of ConTree::new.
Sourcepub fn with_budget_schedule(self, schedule: ScheduleKind) -> Self
pub fn with_budget_schedule(self, schedule: ScheduleKind) -> Self
Chooses the anytime search’s budget schedule. No effect on the exhaustive search, which has no budget.
Sourcepub fn fit(&mut self, dataset: &Dataset) -> Result<FitOutcome, SearchError>
pub fn fit(&mut self, dataset: &Dataset) -> Result<FitOutcome, SearchError>
Runs the search on dataset.
Sourcepub fn partial_fit(&mut self, view: &DataView<'_>) -> Result<bool, SearchError>
pub fn partial_fit(&mut self, view: &DataView<'_>) -> Result<bool, SearchError>
Runs one pass of the anytime search, returning whether it is done.
The exhaustive solver has no notion of a partial fit, so it runs to completion and reports that it is done.
Sourcepub fn stats(&self) -> Statistics
pub fn stats(&self) -> Statistics
Counters of the last search.
Sourcepub fn status(&self) -> SearchStatus
pub fn status(&self) -> SearchStatus
Why the last search stopped.
Auto Trait Implementations§
impl !RefUnwindSafe for GenericConTree
impl !Sync for GenericConTree
impl !UnwindSafe for GenericConTree
impl Freeze for GenericConTree
impl Send for GenericConTree
impl Unpin for GenericConTree
impl UnsafeUnpin for GenericConTree
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