pub struct GraphRegularizationConfig {
pub regularization_type: RegularizationType,
pub lambda: f64,
pub x_graph: Option<GraphStructure>,
pub y_graph: Option<GraphStructure>,
pub max_iterations: usize,
pub tolerance: f64,
pub n_components: usize,
pub additional_params: HashMap<String, f64>,
}Expand description
Configuration for graph-regularized methods
Fields§
§regularization_type: RegularizationTypeRegularization type
lambda: f64Regularization strength parameter (lambda)
x_graph: Option<GraphStructure>Graph structure for X variables
y_graph: Option<GraphStructure>Graph structure for Y variables
max_iterations: usizeMaximum iterations for optimization
tolerance: f64Convergence tolerance
n_components: usizeNumber of components to extract
additional_params: HashMap<String, f64>Additional regularization parameters
Implementations§
Source§impl GraphRegularizationConfig
impl GraphRegularizationConfig
Sourcepub fn new(regularization_type: RegularizationType, lambda: f64) -> Self
pub fn new(regularization_type: RegularizationType, lambda: f64) -> Self
Create new configuration with specific regularization type
Sourcepub fn with_x_graph(self, graph: GraphStructure) -> Self
pub fn with_x_graph(self, graph: GraphStructure) -> Self
Set X graph structure
Sourcepub fn with_y_graph(self, graph: GraphStructure) -> Self
pub fn with_y_graph(self, graph: GraphStructure) -> Self
Set Y graph structure
Sourcepub fn with_components(self, n_components: usize) -> Self
pub fn with_components(self, n_components: usize) -> Self
Set number of components
Sourcepub fn with_parameter(self, name: &str, value: f64) -> Self
pub fn with_parameter(self, name: &str, value: f64) -> Self
Add additional parameter
Trait Implementations§
Source§impl Clone for GraphRegularizationConfig
impl Clone for GraphRegularizationConfig
Source§fn clone(&self) -> GraphRegularizationConfig
fn clone(&self) -> GraphRegularizationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphRegularizationConfig
impl Debug for GraphRegularizationConfig
Auto Trait Implementations§
impl Freeze for GraphRegularizationConfig
impl RefUnwindSafe for GraphRegularizationConfig
impl Send for GraphRegularizationConfig
impl Sync for GraphRegularizationConfig
impl Unpin for GraphRegularizationConfig
impl UnwindSafe for GraphRegularizationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more