pub struct TrainingSample {
pub prompt: Option<String>,
pub chosen: Option<String>,
pub rejected: Option<String>,
pub completion: Option<String>,
pub label: Option<f32>,
pub meta: HashMap<String, Value>,
}
Expand description
Universal training sample - works for all algorithms
Fields§
§prompt: Option<String>
§chosen: Option<String>
§rejected: Option<String>
§completion: Option<String>
§label: Option<f32>
§meta: HashMap<String, Value>
Trait Implementations§
Source§impl Clone for TrainingSample
impl Clone for TrainingSample
Source§fn clone(&self) -> TrainingSample
fn clone(&self) -> TrainingSample
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 moreSource§impl Debug for TrainingSample
impl Debug for TrainingSample
Source§impl<'de> Deserialize<'de> for TrainingSample
impl<'de> Deserialize<'de> for TrainingSample
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 TrainingSample
impl RefUnwindSafe for TrainingSample
impl Send for TrainingSample
impl Sync for TrainingSample
impl Unpin for TrainingSample
impl UnwindSafe for TrainingSample
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