pub struct MultimodalFusion {
pub embedding_weight: f32,
pub label_weight: f32,
}Expand description
Multimodal fusion weights.
Fields§
§embedding_weight: f32Weight for embedding cosine.
label_weight: f32Weight for best open-vocab confidence.
Implementations§
Source§impl MultimodalFusion
impl MultimodalFusion
Sourcepub fn score(
&self,
entity: &SemanticEntity,
query: &Embedding,
) -> SemanticResult<FusionScore>
pub fn score( &self, entity: &SemanticEntity, query: &Embedding, ) -> SemanticResult<FusionScore>
Scores one entity against a query embedding.
Trait Implementations§
Source§impl Clone for MultimodalFusion
impl Clone for MultimodalFusion
Source§fn clone(&self) -> MultimodalFusion
fn clone(&self) -> MultimodalFusion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultimodalFusion
impl Debug for MultimodalFusion
Source§impl Default for MultimodalFusion
impl Default for MultimodalFusion
Source§impl PartialEq for MultimodalFusion
impl PartialEq for MultimodalFusion
Source§fn eq(&self, other: &MultimodalFusion) -> bool
fn eq(&self, other: &MultimodalFusion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MultimodalFusion
impl StructuralPartialEq for MultimodalFusion
Auto Trait Implementations§
impl Freeze for MultimodalFusion
impl RefUnwindSafe for MultimodalFusion
impl Send for MultimodalFusion
impl Sync for MultimodalFusion
impl Unpin for MultimodalFusion
impl UnsafeUnpin for MultimodalFusion
impl UnwindSafe for MultimodalFusion
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