pub struct StrategyLearner { /* private fields */ }Expand description
Strategy learner for extracting heuristics from proofs.
Implementations§
Source§impl StrategyLearner
impl StrategyLearner
Sourcepub fn with_min_support(self, support: usize) -> Self
pub fn with_min_support(self, support: usize) -> Self
Set the minimum support count.
Sourcepub fn with_min_confidence(self, confidence: f64) -> Self
pub fn with_min_confidence(self, confidence: f64) -> Self
Set the minimum confidence threshold.
Sourcepub fn learn_from_proofs(
&mut self,
proofs: &[&Proof],
_proof_stats: &[(f64, f64)],
)
pub fn learn_from_proofs( &mut self, proofs: &[&Proof], _proof_stats: &[(f64, f64)], )
Learn heuristics from a collection of successful proofs.
Sourcepub fn get_heuristics(&self) -> &[ProofHeuristic]
pub fn get_heuristics(&self) -> &[ProofHeuristic]
Get all learned heuristics.
Sourcepub fn get_heuristics_by_type(&self, type_name: &str) -> Vec<&ProofHeuristic>
pub fn get_heuristics_by_type(&self, type_name: &str) -> Vec<&ProofHeuristic>
Get heuristics of a specific type.
Sourcepub fn get_top_heuristics(&self, n: usize) -> Vec<&ProofHeuristic>
pub fn get_top_heuristics(&self, n: usize) -> Vec<&ProofHeuristic>
Get top N heuristics by confidence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StrategyLearner
impl RefUnwindSafe for StrategyLearner
impl Send for StrategyLearner
impl Sync for StrategyLearner
impl Unpin for StrategyLearner
impl UnsafeUnpin for StrategyLearner
impl UnwindSafe for StrategyLearner
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