pub struct TrainingDataSet {
pub training: ImageDataSet,
pub regularization: Option<ImageDataSet>,
}Expand description
A training data set.
Fields§
§training: ImageDataSetThe training images.
regularization: Option<ImageDataSet>The regularization images.
Implementations§
source§impl TrainingDataSet
impl TrainingDataSet
sourcepub fn new(training: ImageDataSet) -> Self
pub fn new(training: ImageDataSet) -> Self
Create a new training data set.
sourcepub fn with_regularization_images(
self,
regularization_images: ImageDataSet
) -> Self
pub fn with_regularization_images( self, regularization_images: ImageDataSet ) -> Self
Set the regularization images for the training data set.
Trait Implementations§
source§impl Debug for TrainingDataSet
impl Debug for TrainingDataSet
source§impl<'de> Deserialize<'de> for TrainingDataSet
impl<'de> Deserialize<'de> for TrainingDataSet
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 RefUnwindSafe for TrainingDataSet
impl Send for TrainingDataSet
impl Sync for TrainingDataSet
impl Unpin for TrainingDataSet
impl UnwindSafe for TrainingDataSet
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