pub struct AdvancedPatternMiningEngine { /* private fields */ }Expand description
Advanced pattern mining engine
Implementations§
Source§impl AdvancedPatternMiningEngine
impl AdvancedPatternMiningEngine
Sourcepub fn with_config(config: AdvancedPatternMiningConfig) -> Self
pub fn with_config(config: AdvancedPatternMiningConfig) -> Self
Create pattern mining engine with configuration
Sourcepub fn mine_patterns(
&mut self,
store: &dyn Store,
graph_name: Option<&str>,
) -> Result<Vec<AdvancedPattern>>
pub fn mine_patterns( &mut self, store: &dyn Store, graph_name: Option<&str>, ) -> Result<Vec<AdvancedPattern>>
Mine patterns from RDF store
Sourcepub fn get_stats(&self) -> &PatternMiningStats
pub fn get_stats(&self) -> &PatternMiningStats
Get mining statistics
Sourcepub fn get_config(&self) -> &AdvancedPatternMiningConfig
pub fn get_config(&self) -> &AdvancedPatternMiningConfig
Get configuration
Sourcepub fn update_config(&mut self, config: AdvancedPatternMiningConfig)
pub fn update_config(&mut self, config: AdvancedPatternMiningConfig)
Update configuration
Sourcepub fn get_frequency_tables(&self) -> &FrequencyTables
pub fn get_frequency_tables(&self) -> &FrequencyTables
Get frequency tables
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear cache
Sourcepub fn get_cache_stats(&self) -> Result<Value>
pub fn get_cache_stats(&self) -> Result<Value>
Get cache statistics
Sourcepub fn warm_cache(&mut self) -> usize
pub fn warm_cache(&mut self) -> usize
Warm cache with frequently accessed patterns
Sourcepub fn get_cache_analytics(&self) -> Value
pub fn get_cache_analytics(&self) -> Value
Get cache analytics
Sourcepub fn get_advanced_cache_statistics(&self) -> Value
pub fn get_advanced_cache_statistics(&self) -> Value
Get advanced cache statistics
Sourcepub fn evaluate_cache_strategy(&self) -> bool
pub fn evaluate_cache_strategy(&self) -> bool
Evaluate cache strategy
Sourcepub fn get_cache_recommendations(&self) -> Vec<String>
pub fn get_cache_recommendations(&self) -> Vec<String>
Get cache recommendations
Sourcepub fn get_cache_eviction_strategy(&self) -> String
pub fn get_cache_eviction_strategy(&self) -> String
Get cache eviction strategy
Sourcepub fn mine_sequential_patterns(
&mut self,
store: &dyn Store,
graph_name: Option<&str>,
_min_support: f64,
) -> Result<Vec<AdvancedPattern>>
pub fn mine_sequential_patterns( &mut self, store: &dyn Store, graph_name: Option<&str>, _min_support: f64, ) -> Result<Vec<AdvancedPattern>>
Mine sequential patterns
Sourcepub fn mine_graph_patterns(
&mut self,
store: &dyn Store,
graph_name: Option<&str>,
_max_size: usize,
) -> Result<Vec<AdvancedPattern>>
pub fn mine_graph_patterns( &mut self, store: &dyn Store, graph_name: Option<&str>, _max_size: usize, ) -> Result<Vec<AdvancedPattern>>
Mine graph patterns
Sourcepub fn mine_enhanced_temporal_patterns(
&mut self,
store: &dyn Store,
graph_name: Option<&str>,
_granularity: TimeGranularity,
) -> Result<Vec<AdvancedPattern>>
pub fn mine_enhanced_temporal_patterns( &mut self, store: &dyn Store, graph_name: Option<&str>, _granularity: TimeGranularity, ) -> Result<Vec<AdvancedPattern>>
Mine enhanced temporal patterns
Sourcepub fn rank_patterns_advanced(
&self,
patterns: &mut [AdvancedPattern],
_criteria: &PatternRankingCriteria,
) -> Vec<f64>
pub fn rank_patterns_advanced( &self, patterns: &mut [AdvancedPattern], _criteria: &PatternRankingCriteria, ) -> Vec<f64>
Rank patterns with advanced criteria
Sourcepub fn perform_enhanced_statistical_analysis(
&self,
patterns: &[AdvancedPattern],
) -> Value
pub fn perform_enhanced_statistical_analysis( &self, patterns: &[AdvancedPattern], ) -> Value
Perform enhanced statistical analysis
Sourcepub fn get_cached_patterns(
&self,
_cache_key: &str,
) -> Option<Vec<AdvancedPattern>>
pub fn get_cached_patterns( &self, _cache_key: &str, ) -> Option<Vec<AdvancedPattern>>
Get cached patterns
Sourcepub fn cache_patterns(
&mut self,
_cache_key: String,
_patterns: Vec<AdvancedPattern>,
)
pub fn cache_patterns( &mut self, _cache_key: String, _patterns: Vec<AdvancedPattern>, )
Cache patterns
Trait Implementations§
Source§impl Debug for AdvancedPatternMiningEngine
impl Debug for AdvancedPatternMiningEngine
Auto Trait Implementations§
impl Freeze for AdvancedPatternMiningEngine
impl RefUnwindSafe for AdvancedPatternMiningEngine
impl Send for AdvancedPatternMiningEngine
impl Sync for AdvancedPatternMiningEngine
impl Unpin for AdvancedPatternMiningEngine
impl UnsafeUnpin for AdvancedPatternMiningEngine
impl UnwindSafe for AdvancedPatternMiningEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.