PicardConfig

Struct PicardConfig 

Source
pub struct PicardConfig {
Show 16 fields pub density: DensityType, pub n_components: Option<usize>, pub ortho: bool, pub extended: Option<bool>, pub whiten: bool, pub centering: bool, pub max_iter: usize, pub tol: f64, pub m: usize, pub ls_tries: usize, pub lambda_min: f64, pub w_init: Option<Array2<f64>>, pub fastica_it: Option<usize>, pub jade_it: Option<usize>, pub random_state: Option<u64>, pub verbose: bool,
}
Expand description

Configuration parameters for the PICARD algorithm.

Fields§

§density: DensityType

Density function to use for ICA.

§n_components: Option<usize>

Number of components to extract. If None, uses min(n_features, n_samples).

§ortho: bool

If true, uses Picard-O with orthogonal constraint.

§extended: Option<bool>

If true, uses extended algorithm for sub/super-Gaussian sources. Defaults to same value as ortho if not specified.

§whiten: bool

If true, perform whitening on the data.

§centering: bool

If true, center the data before processing.

§max_iter: usize

Maximum number of iterations.

§tol: f64

Convergence tolerance for gradient norm.

§m: usize

Size of L-BFGS memory.

§ls_tries: usize

Maximum line search attempts.

§lambda_min: f64

Minimum eigenvalue for Hessian regularization.

§w_init: Option<Array2<f64>>

Initial unmixing matrix. If None, uses random initialization.

§fastica_it: Option<usize>

Number of FastICA iterations before PICARD. If None, skip FastICA.

§jade_it: Option<usize>

Number of JADE iterations before PICARD. If None, skip JADE. JADE (Joint Approximate Diagonalization of Eigenmatrices) can provide a better warm start than FastICA for some data distributions.

§random_state: Option<u64>

Random seed for reproducibility.

§verbose: bool

If true, print progress information.

Implementations§

Source§

impl PicardConfig

Source

pub fn new() -> Self

Create a new configuration with default values.

Source

pub fn builder() -> ConfigBuilder

Create a builder for constructing a configuration.

Source

pub fn effective_extended(&self) -> bool

Get the effective value of extended (defaults to ortho if not set).

Source

pub fn validate(&self) -> Result<(), PicardError>

Validate the configuration.

Trait Implementations§

Source§

impl Clone for PicardConfig

Source§

fn clone(&self) -> PicardConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for PicardConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V