Skip to main content

LGDT

Struct LGDT 

Source
pub struct LGDT<D>{ /* private fields */ }
Expand description

LGDT, a less greedy decision tree learner.

Like CART, it builds the tree top-down one test at a time, but it chooses each test by solving a depth-2 tree at the node with a OptimalDepth2Tree solver and keeping its root. This two-level lookahead is cheap thanks to the depth-2 solver and makes the tree much less myopic than a purely greedy one.

Kiossou, Schaus, Nijssen and Aglin, Efficient Lookahead Decision Trees (IDA 2024). Build one with LGDTBuilder or the functions in factories.

Implementations§

Source§

impl<D> LGDT<D>

Source

pub fn config(&self) -> &BaseSearchConfig

The settings of the search.

Trait Implementations§

Source§

impl<D> TreeSearchAlgorithm for LGDT<D>

Source§

fn fit(&mut self, cover: &mut Cover) -> Result<(), FitError>

Learns a tree on the instances of cover.
Source§

fn tree(&self) -> &Tree

The tree learned by the last fit.
Source§

fn error(&self) -> f64

Training error of the learned tree.
Source§

fn get_candidates( &self, cover: &mut Cover, min_sup: usize, provided_candidates: Option<&[usize]>, previous: Option<usize>, ) -> Vec<usize>

Features that can split the current node. See find_valid_split_attributes.

Auto Trait Implementations§

§

impl<D> Freeze for LGDT<D>
where D: ?Sized,

§

impl<D> RefUnwindSafe for LGDT<D>
where D: RefUnwindSafe + ?Sized,

§

impl<D> Send for LGDT<D>
where D: Send + ?Sized,

§

impl<D> Sync for LGDT<D>
where D: Sync + ?Sized,

§

impl<D> Unpin for LGDT<D>
where D: ?Sized,

§

impl<D> UnsafeUnpin for LGDT<D>
where D: ?Sized,

§

impl<D> UnwindSafe for LGDT<D>
where D: UnwindSafe + ?Sized,

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.