pub fn fit_two_class_centroids(
dim: usize,
class_a: &str,
embeds_a: &[&[f32]],
class_b: &str,
embeds_b: &[&[f32]],
) -> Result<LinearHead, VisionError>Expand description
Train a 2-class head by averaging embeddings of two example batches (centroid).