Skip to main content

GenericConTree

Enum GenericConTree 

Source
pub enum GenericConTree {
    Normal(ConTree),
    LDS(ConTreeLds),
}
Expand description

Either search behind one interface, chosen at run time.

Variants§

§

Normal(ConTree)

The exhaustive search.

§

LDS(ConTreeLds)

The anytime search.

Implementations§

Source§

impl GenericConTree

Source

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.

Source

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.

Source

pub fn fit(&mut self, dataset: &Dataset) -> Result<FitOutcome, SearchError>

Runs the search on dataset.

Source

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.

Source

pub fn stats(&self) -> Statistics

Counters of the last search.

Source

pub fn status(&self) -> SearchStatus

Why the last search stopped.

Source

pub fn tree(&mut self) -> Tree

The tree found by the last fit. Empty if fit has not run.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V