pub struct GraphFeatureSelectorBuilder { /* private fields */ }Expand description
Builder for GraphFeatureSelector configuration.
Implementations§
Source§impl GraphFeatureSelectorBuilder
impl GraphFeatureSelectorBuilder
pub fn new() -> Self
Sourcepub fn include_centrality(self, include: bool) -> Self
pub fn include_centrality(self, include: bool) -> Self
Whether to include centrality-based features.
Sourcepub fn include_community(self, include: bool) -> Self
pub fn include_community(self, include: bool) -> Self
Whether to include community-based features.
Sourcepub fn include_structural(self, include: bool) -> Self
pub fn include_structural(self, include: bool) -> Self
Whether to include structural property features.
Sourcepub fn centrality_threshold(self, threshold: f64) -> Self
pub fn centrality_threshold(self, threshold: f64) -> Self
Minimum centrality score threshold for feature selection.
Sourcepub fn centrality_types(self, types: Vec<&str>) -> Self
pub fn centrality_types(self, types: Vec<&str>) -> Self
Types of centrality measures to compute.
Sourcepub fn community_method(self, method: &str) -> Self
pub fn community_method(self, method: &str) -> Self
Community detection method to use.
Sourcepub fn min_community_size(self, size: usize) -> Self
pub fn min_community_size(self, size: usize) -> Self
Minimum size for communities to be considered.
Sourcepub fn community_weight(self, weight: f64) -> Self
pub fn community_weight(self, weight: f64) -> Self
Weight for community-based features in scoring.
Sourcepub fn structural_weight(self, weight: f64) -> Self
pub fn structural_weight(self, weight: f64) -> Self
Weight for structural property features in scoring.
Sourcepub fn damping_factor(self, factor: f64) -> Self
pub fn damping_factor(self, factor: f64) -> Self
Damping factor for PageRank computation.
Sourcepub fn max_iterations(self, iterations: usize) -> Self
pub fn max_iterations(self, iterations: usize) -> Self
Maximum iterations for iterative algorithms.
Sourcepub fn with_adjacency(self, adjacency: Array2<f64>) -> Self
pub fn with_adjacency(self, adjacency: Array2<f64>) -> Self
Sets the adjacency matrix for graph feature selection.
Sourcepub fn build(self) -> GraphFeatureSelector<Untrained>
pub fn build(self) -> GraphFeatureSelector<Untrained>
Builds the GraphFeatureSelector.
Trait Implementations§
Source§impl Debug for GraphFeatureSelectorBuilder
impl Debug for GraphFeatureSelectorBuilder
Auto Trait Implementations§
impl Freeze for GraphFeatureSelectorBuilder
impl RefUnwindSafe for GraphFeatureSelectorBuilder
impl Send for GraphFeatureSelectorBuilder
impl Sync for GraphFeatureSelectorBuilder
impl Unpin for GraphFeatureSelectorBuilder
impl UnwindSafe for GraphFeatureSelectorBuilder
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> 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<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.