pub struct Budget {
pub discrepancy: usize,
pub split_discrepancy: usize,
}Expand description
The limits one pass of the anytime search runs under.
Both are counted as discrepancies, from 0: a discrepancy of 0 means “only the heuristic’s first choice”, and each unit allows one step further down its ranking.
Fields§
§discrepancy: usizeHow far down the Gini ranking of features the search may go, accumulated along the path from the root.
split_discrepancy: usizeHow far down the Gini ranking of split points each node may go: the
node tries its best split_discrepancy + 1 splits.
Implementations§
Trait Implementations§
impl Copy for Budget
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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