pub struct KernelPca {
pub embedding: Array2<f64>,
pub eigenvalues: Array1<f64>,
pub kernel: KernelKind,
}Expand description
Fitted kernel-PCA embedding.
Fields§
§embedding: Array2<f64>Low-dimensional embedding, n × n_components.
eigenvalues: Array1<f64>Retained eigenvalues.
kernel: KernelKindKernel used at fit time.
Implementations§
Source§impl KernelPca
impl KernelPca
Sourcepub fn fit(
x: ArrayView2<'_, f64>,
kernel: KernelKind,
n_components: usize,
) -> Result<Self>
pub fn fit( x: ArrayView2<'_, f64>, kernel: KernelKind, n_components: usize, ) -> Result<Self>
Fit onto x with the given kernel and target dimension.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KernelPca
impl<'de> Deserialize<'de> for KernelPca
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for KernelPca
Auto Trait Implementations§
impl Freeze for KernelPca
impl RefUnwindSafe for KernelPca
impl Send for KernelPca
impl Sync for KernelPca
impl Unpin for KernelPca
impl UnsafeUnpin for KernelPca
impl UnwindSafe for KernelPca
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