pub struct TunableConcept {
pub label: String,
pub category: String,
pub features: Vec<(usize, f64)>,
pub quality: f64,
pub axis_coherence: f64,
pub bridge_degree: u8,
pub source_confidence: f64,
pub home_affinity: f64,
pub source: Option<String>,
pub openalex_id: Option<String>,
}Expand description
Concept view that the self-tuner mutates. The corpus crate’s
Concept uses &'static str for label
and category — fine for read-only consumers, but the self-tuner
owns the strings for the lifetime of the tune run and re-emits them
to Parquet, so we copy into owned Strings here.
Fields§
§label: String§category: String§features: Vec<(usize, f64)>§quality: f64§axis_coherence: f64§bridge_degree: u8§source_confidence: f64§home_affinity: f64§source: Option<String>§openalex_id: Option<String>Trait Implementations§
Source§impl Clone for TunableConcept
impl Clone for TunableConcept
Source§fn clone(&self) -> TunableConcept
fn clone(&self) -> TunableConcept
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 TunableConcept
impl Debug for TunableConcept
Source§impl<'de> Deserialize<'de> for TunableConcept
impl<'de> Deserialize<'de> for TunableConcept
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
Auto Trait Implementations§
impl Freeze for TunableConcept
impl RefUnwindSafe for TunableConcept
impl Send for TunableConcept
impl Sync for TunableConcept
impl Unpin for TunableConcept
impl UnsafeUnpin for TunableConcept
impl UnwindSafe for TunableConcept
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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