pub struct LTRTrainingExample {
pub query_id: String,
pub document_id: String,
pub features: Vec<f32>,
pub relevance: f32,
pub weight: f32,
}Expand description
Training example for LTR models
Fields§
§query_id: StringQuery identifier
document_id: StringDocument identifier
features: Vec<f32>Feature vector
relevance: f32Relevance label (0-4 typically)
weight: f32Training weight
Trait Implementations§
Source§impl Clone for LTRTrainingExample
impl Clone for LTRTrainingExample
Source§fn clone(&self) -> LTRTrainingExample
fn clone(&self) -> LTRTrainingExample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LTRTrainingExample
impl RefUnwindSafe for LTRTrainingExample
impl Send for LTRTrainingExample
impl Sync for LTRTrainingExample
impl Unpin for LTRTrainingExample
impl UnwindSafe for LTRTrainingExample
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