pub struct LMCKernel { /* private fields */ }Expand description
Linear Model of Coregionalization (LMC) kernel.
K((x, i), (y, j)) = Σ_q B_q[i, j] * k_q(x, y)
where:
- Each (B_q, k_q) pair represents a latent process
- B_q is a task covariance matrix
- k_q is a kernel function
LMC is more expressive than ICM as it allows different kernels to capture different aspects of task relationships.
Implementations§
Source§impl LMCKernel
impl LMCKernel
Sourcepub fn add_component(
&mut self,
kernel: Box<dyn Kernel>,
task_covariance: Vec<Vec<f64>>,
) -> Result<()>
pub fn add_component( &mut self, kernel: Box<dyn Kernel>, task_covariance: Vec<Vec<f64>>, ) -> Result<()>
Add a latent process component.
Sourcepub fn compute_tasks(&self, x: &TaskInput, y: &TaskInput) -> Result<f64>
pub fn compute_tasks(&self, x: &TaskInput, y: &TaskInput) -> Result<f64>
Compute LMC kernel value for task inputs.
Sourcepub fn num_components(&self) -> usize
pub fn num_components(&self) -> usize
Get number of components.
Auto Trait Implementations§
impl Freeze for LMCKernel
impl !RefUnwindSafe for LMCKernel
impl Send for LMCKernel
impl Sync for LMCKernel
impl Unpin for LMCKernel
impl !UnwindSafe for LMCKernel
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 more