pub(crate) mod factor;
mod fitted;
mod model;
mod objective;
mod online;
#[cfg(test)]
mod tests;
pub use fitted::FittedSgpr;
pub use model::Sgpr;
pub(crate) use objective::SgprObjective;
pub(crate) use online::InducingRegistry;
pub use online::{InducingId, OnlineSgpr};
#[derive(Clone, Copy, Debug, Default)]
pub struct FixedInducing;
#[derive(Clone, Copy, Debug, Default)]
pub struct FreeInducing;
pub trait InducingLayout: Clone {
fn z_params(m: usize, d: usize) -> usize;
}
impl InducingLayout for FixedInducing {
fn z_params(_m: usize, _d: usize) -> usize {
0
}
}
impl InducingLayout for FreeInducing {
fn z_params(m: usize, d: usize) -> usize {
m * d
}
}