pub struct ExampleParser {Show 14 fields
pub input: PathBuf,
pub support: usize,
pub depth: usize,
pub timeout: f64,
pub metric: f64,
pub epsilon: f64,
pub fast_d2: OptimalDepth2Policy,
pub print_stats: bool,
pub always_sort: bool,
pub heuristic: SearchHeuristic,
pub step: SearchStepStrategy,
pub result: PathBuf,
pub print_tree: bool,
pub overwrite: bool,
}Expand description
Command line arguments of the anytime examples.
Fields§
§input: PathBufDataset file: one instance per line, label first, binary features
support: usizeMinimum number of instances in each leaf
depth: usizeMaximum depth of the tree
timeout: f64Time limit in seconds
metric: f64Not used by the current examples
epsilon: f64Step of the gain and purity rules
fast_d2: OptimalDepth2PolicyWhether to use the depth-2 solver
print_stats: boolPrint the search statistics
always_sort: boolSort the features by the heuristic at every node
heuristic: SearchHeuristicHeuristic used to order the features
step: SearchStepStrategyHow the budget of the search rule grows between passes
result: PathBufDirectory where the JSON results are written
print_tree: boolPrint the tree
overwrite: boolOverwrite existing results
Trait Implementations§
Source§impl Args for ExampleParser
impl Args for ExampleParser
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl CommandFactory for ExampleParser
impl CommandFactory for ExampleParser
Source§impl Debug for ExampleParser
impl Debug for ExampleParser
Source§impl FromArgMatches for ExampleParser
impl FromArgMatches for ExampleParser
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for ExampleParser
impl Parser for ExampleParser
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error. Read more
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for ExampleParser
impl RefUnwindSafe for ExampleParser
impl Send for ExampleParser
impl Sync for ExampleParser
impl Unpin for ExampleParser
impl UnsafeUnpin for ExampleParser
impl UnwindSafe for ExampleParser
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