pub struct TrainConfig { /* private fields */ }Expand description
configuration for convenient training through the wrapper
Implementations§
Source§impl TrainConfig
impl TrainConfig
Source§impl TrainConfig
impl TrainConfig
Sourcepub fn with_artifact_directory(self, artifact_directory: String) -> Self
pub fn with_artifact_directory(self, artifact_directory: String) -> Self
Set the default value for the field.
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set the default value for the field.
Sourcepub fn with_checkpoints(self, checkpoints: bool) -> Self
pub fn with_checkpoints(self, checkpoints: bool) -> Self
Set the default value for the field.
Sourcepub fn with_console_rendering(self, console_rendering: bool) -> Self
pub fn with_console_rendering(self, console_rendering: bool) -> Self
Set the default value for the field.
Sourcepub fn with_epochs(self, epochs: usize) -> Self
pub fn with_epochs(self, epochs: usize) -> Self
Set the default value for the field.
Sourcepub fn with_summary(self, summary: bool) -> Self
pub fn with_summary(self, summary: bool) -> Self
Set the default value for the field.
Sourcepub fn with_workers(self, workers: usize) -> Self
pub fn with_workers(self, workers: usize) -> Self
Set the default value for the field.
Trait Implementations§
Source§impl Clone for TrainConfig
impl Clone for TrainConfig
Source§impl Config for TrainConfig
impl Config for TrainConfig
Source§fn load<P>(file: P) -> Result<Self, ConfigError>
fn load<P>(file: P) -> Result<Self, ConfigError>
Loads the configuration from a file. Read more
Source§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
Source§impl Debug for TrainConfig
impl Debug for TrainConfig
Source§impl<'de> Deserialize<'de> for TrainConfig
impl<'de> Deserialize<'de> for TrainConfig
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
Source§impl Display for TrainConfig
impl Display for TrainConfig
Auto Trait Implementations§
impl Freeze for TrainConfig
impl RefUnwindSafe for TrainConfig
impl Send for TrainConfig
impl Sync for TrainConfig
impl Unpin for TrainConfig
impl UnwindSafe for TrainConfig
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,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more