pub struct DatasetConfig {
pub patterns_path: Option<String>,
pub preferences_path: Option<String>,
pub distillation_path: Option<String>,
pub max_seq_length: usize,
pub validation_split: f32,
}Expand description
Dataset configuration
Fields§
§patterns_path: Option<String>Path to patterns dataset
preferences_path: Option<String>Path to preferences dataset
distillation_path: Option<String>Path to distillation targets
max_seq_length: usizeMaximum sequence length
validation_split: f32Train/validation split ratio
Trait Implementations§
Source§impl Clone for DatasetConfig
impl Clone for DatasetConfig
Source§fn clone(&self) -> DatasetConfig
fn clone(&self) -> DatasetConfig
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 DatasetConfig
impl Debug for DatasetConfig
Source§impl Default for DatasetConfig
impl Default for DatasetConfig
Source§impl<'de> Deserialize<'de> for DatasetConfig
impl<'de> Deserialize<'de> for DatasetConfig
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 DatasetConfig
impl RefUnwindSafe for DatasetConfig
impl Send for DatasetConfig
impl Sync for DatasetConfig
impl Unpin for DatasetConfig
impl UnwindSafe for DatasetConfig
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